npu.eval.kfold_evaluator
Classes
|
- class npu.eval.kfold_evaluator.KFoldEvaluator(**kwargs)
- Author:
Alberto M. Esmoris Pena
Class providing common logic for evaluations based on k-folding. Note that this class can be incorporated in k-fold evaluators for different problems through composition.
See
npu.eval.kfold_evaluation.KFoldEvaluation.- __init__(**kwargs)
Initialize/instantiate a KFoldEvaluator
- Parameters:
kwargs – The attributes for the KFoldEvaluator
- eval(X, KFoldEvaluation, **kwargs)
Evaluate the results of a k-folding procedure.
- Parameters:
X – The matrix of quantitative evaluations. Each row must represent a fold and each column an evaluation metric. Thus, X[i][j] is the j-th evaluation metric on the i-th fold.
KFoldEvaluation (class) – The class representing the evaluation of the k-folding.
- Returns:
The evaluation of the k-folding.
- Return type:
KFoldEvaluation