iSCAN
iscan.utils.node_metrics
Initializing search
    kevinsbello/iscan
    • Home
    • Getting Started
    • API Reference
    kevinsbello/iscan
      • Home
      • Getting Started
      • iscan
        • iscan.score_estimator
          • stein_hess
        • iscan.shifted_edges
          • est_struct_shifts
        • iscan.shifted_nodes
          • est_node_shifts
        • iscan.utils
          • DataGenerator
            • _simulate_dag
            • _sample_GP
            • _choose_shifted_nodes
            • _delete_edges
            • _sample_from_same_structs
            • _sample_from_diff_structs
            • sample
          • set_seed
          • node_metrics
          • ddag_metrics

    iscan.utils.node_metrics¶

    iscan.utils.node_metrics(true_shifted_nodes: list, pred_shifted_nodes: list, d: int) → dict¶

    Computes precision, recall, and f1 scores for the predicted shifted nodes.

    Parameters:¶
    true_shifted_nodes : list¶

    List of true shifted nodes

    pred_shifted_nodes : list¶

    List of predicted shifted nodes

    d : int¶

    Total number of nodes/variables

    Returns:¶

    precision, recall, and F1 scores

    Return type:¶

    dict


    Last update: Jul 05, 2024
    Back to top
    Previous iscan.utils.set_seed
    Next iscan.utils.ddag_metrics
    © Copyright 2023, Kevin Bello and Tianyu Chen.
    Created using Sphinx 7.1.2. and Sphinx-Immaterial