dgld.utils.evaluation
This is a program about evaluating scores.
- dgld.utils.evaluation.split_auc(groundtruth, prob)[source]
print the scoring(AUC) of the two types of anomalies separately and global auc.
- Parameters
groundtruth (np.ndarray) – Indicates whether this node is an injected anomaly node. 0: normal node; 1: structural anomaly; 2: contextual anomaly
prob (np.ndarray-like array) – saving the predicted score for every node
- Return type
None