graphstorm.eval
GraphStorm provides built-in evaluators and interfaces for different Graph Machine Learning tasks. Each evaluator can have multiple task specific metrics for model evaluation. For example,
GSgnnClassificationEvaluatorusesaccuracyas its default evaluation metric. However, users can also set other metrics, e.g.,precision_recall,roc_auc, andf1_scoreinGSgnnClassificationEvaluator.Users can find the information about metrics for different tasks in the Evaluation Metrics section.
If users want to implement customized evaluators, a best practice is to extend the base evaluator, i.e.,
GSgnnBaseEvaluator, and the corresponding evaluation interfaces, e.g.,GSgnnPredictionEvalInterfacefor prediction evaluation andGSgnnLPRankingEvalInterfacefor ranking-based link prediction evaluation, and then implement the abstract methods defined in those interface classes.
Base Evaluators
Base class for GraphStorm Evaluators. |
|
Interface for Prediction evaluation functions. |
|
Interface for Link Prediction evaluation functions using ranking methods. |
Evaluators
Evaluator for classification tasks. |
|
Evaluator for regression tasks. |
|
Evaluator for Link Prediction tasks using “mrr” and/or "hit@k" as metric(s). |
|
Evaluator for Link Prediction tasks using |
|
Evaluator for feature reconstruction tasks using regression scores. |