Evaluator#
This module implements custom Python classes to evaluate performances of models in TopoBenchmarkX.
Abstract class for the evaluator class.
- class topobenchmarkx.evaluator.base.AbstractEvaluator[source]#
Abstract class for the evaluator class.
This module contains the Evaluator class that is responsible for computing the metrics.
- class topobenchmarkx.evaluator.evaluator.TBXEvaluator(task, **kwargs)[source]#
Evaluator class that is responsible for computing the metrics.
- Parameters:
- taskstr
The task type. It can be either “classification” or “regression”.
- **kwargsdict
Additional arguments for the class. The arguments depend on the task. In “classification” scenario, the following arguments are expected: - num_classes (int): The number of classes. - metrics (list[str]): A list of classification metrics to be computed. In “regression” scenario, the following arguments are expected: - metrics (list[str]): A list of regression metrics to be computed.