pyTigerGraph GDS Metrics
Utility for gathering metrics for GNN predictions.
Accuracy
Accuracy = sum(preds == labels) / len(labels)
Usage:
-
Call the update function to add predictions and labels.
-
Get accuracy score at any point by accessing the value property.
Recall
Recall = \(rac{\sum(preds * labels)}{\sum(labels)}\)
Usage:
-
Call the update function to add predictions and labels.
-
Get recall score at any point by accessing the value property.
Precision
Precision = \(rac{\sum(preds * labels)}{\sum(preds)}\)
Usage:
-
Call the update function to add predictions and labels.
-
Get precision score at any point by accessing the value property.