iscan.utils.ddag_metrics

iscan.utils.ddag_metrics(adj_true: numpy.ndarray, adj_pred: numpy.ndarray) dict

Computes precision, recall, and f1 scores for the predicted structural changes/shifts (difference DAG).

Parameters:
adj_true : np.ndarray

Adjancecy matrix of the true difference DAG (graph of structural differences)

adj_pred : np.ndarray

Predicted adjancecy matrix of the difference DAG (graph of structural differences)

Returns:

Precision, recall, and F1 scores

Return type:

dict


Last update: Jan 14, 2024