topobench.evaluator package#
Subpackages#
Submodules#
topobench.evaluator.base module#
Abstract class for the evaluator class.
topobench.evaluator.evaluator module#
This module contains the Evaluator class that is responsible for computing the metrics.
- class topobench.evaluator.evaluator.TBEvaluator(task, **kwargs)[source]#
Bases:
AbstractEvaluator
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.
Module contents#
Evaluators for model evaluation.
- class topobench.evaluator.AbstractEvaluator[source]#
Bases:
ABC
Abstract class for the evaluator class.
- class topobench.evaluator.TBEvaluator(task, **kwargs)[source]#
Bases:
AbstractEvaluator
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.