Error when Calculating Evaluation Metrics in using Pytroch_geometric UPFD Dataset #87
-
I am trying to calculate evaluation metrics (AUC, accuracy, and F1 score) for DOMINANT model using the UPFD dataset. However, I am encountering an error related to inconsistent sample sizes when attempting to calculate these metrics. I am using PyTorch Geometric's DataLoader to load the UPFD dataset and have made corrections to my code as follows: eval_roc_auc(data.y.numpy(), scores) Here is my complete code: import argparse model = DOMINANT(num_layers=4, epoch=20) for batch in train_loader:
I am still encountering the following error message: Traceback (most recent call last): Please tell me how to print the accuracy, AUC (Area Under the ROC Curve), and F1 score.Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think UPFD dataset is for graph level classification, while DOMINANT is for node level outlier detection. You may try |
Beta Was this translation helpful? Give feedback.
I think UPFD dataset is for graph level classification, while DOMINANT is for node level outlier detection. You may try
to_graph_score
to convert node score to graph score.