File measure_evaluation.hpp¶
-
template<typename ScoreType>
class IClassificationEvaluationMeasure¶ - #include <measure_evaluation.hpp>
Defines an interface for all measures that can be used in classification problems to assess the quality of scores that are predicted for certain examples by comparing them to the corresponding ground truth labels.
- Template Parameters:
ScoreType – The type of the predicted scores
Subclassed by ISparseEvaluationMeasure< ScoreType >
Public Functions
-
inline virtual ~IClassificationEvaluationMeasure()¶
-
virtual ScoreType evaluate(uint32 exampleIndex, const CContiguousView<const uint8> &labelMatrix, const CContiguousView<ScoreType> &scoreMatrix) const = 0¶
Calculates and returns a numerical score that assesses the quality of predictions for the example at a specific index by comparing them to the corresponding ground truth according to a regression matrix that provides random access to the labels of the training examples.
- Parameters:
exampleIndex – The index of the example for which the predictions should be evaluated
labelMatrix – A reference to an object of type
CContiguousViewthat provides random access to the labels of the training examplesscoreMatrix – A reference to an object of type
CContiguousViewthat stores the currently predicted scores
- Returns:
The numerical score that has been calculated
-
virtual ScoreType evaluate(uint32 exampleIndex, const BinaryCsrView &labelMatrix, const CContiguousView<ScoreType> &scoreMatrix) const = 0¶
Calculates and returns a numerical score that assesses the quality of predictions for the example at a specific index by comparing them to the corresponding ground truth according to a label matrix that provides row-wise access to the labels of the training examples.
- Parameters:
exampleIndex – The index of the example for which the predictions should be evaluated
labelMatrix – A reference to an object of type
BinaryCsrViewthat provides row-wise access to the labels of the training examplesscoreMatrix – A reference to an object of type
CContiguousViewthat stores the currently predicted scores
- Returns:
The numerical score that has been calculated
-
template<typename ScoreType>
class IRegressionEvaluationMeasure¶ - #include <measure_evaluation.hpp>
Defines an interface for all measures that can be used in regression problems to assess the quality of predictions for certain examples by comparing them to the corresponding ground truth regression scores.
- Template Parameters:
ScoreType – The type of the predicted scores
Public Functions
-
inline virtual ~IRegressionEvaluationMeasure()¶
-
virtual ScoreType evaluate(uint32 exampleIndex, const CContiguousView<const float32> ®ressionMatrix, const CContiguousView<ScoreType> &scoreMatrix) const = 0¶
Calculates and returns a numerical score that assesses the quality of predictions for the example at a specific index by comparing them to the corresponding ground truth according to a regression matrix that provides random access to the regression scores of the training examples.
- Parameters:
exampleIndex – The index of the example for which the predictions should be evaluated
regressionMatrix – A reference to an object of type
CContiguousViewthat provides random access to the regression scores of the training examplesscoreMatrix – A reference to an object of type
CContiguousViewthat stores the currently predicted scores
- Returns:
The numerical score that has been calculated
-
virtual ScoreType evaluate(uint32 exampleIndex, const CsrView<const float32> ®ressionMatrix, const CContiguousView<ScoreType> &scoreMatrix) const = 0¶
Calculates and returns a numerical score that assesses the quality of predictions for the example at a specific index by comparing them to the corresponding ground truth according to a regression matrix that provides row-wise access to the regression scores of the training examples.
- Parameters:
exampleIndex – The index of the example for which the predictions should be evaluated
regressionMatrix – A reference to an object of type
CsrViewthat provides row-wise access to the regression scores of the training examplesscoreMatrix – A reference to an object of type
CContiguousViewthat stores the currently predicted scores
- Returns:
The numerical score that has been calculated
-
template<typename ScoreType>
class IClassificationEvaluationMeasureFactory¶ - #include <measure_evaluation.hpp>
Defines an interface for all factories that allow to create instances of the type
IClassificationEvaluationMeasure.- Template Parameters:
ScoreType – The type of the predicted scores
Subclassed by ISparseEvaluationMeasureFactory< ScoreType >
Public Functions
-
inline virtual ~IClassificationEvaluationMeasureFactory()¶
-
virtual std::unique_ptr<IClassificationEvaluationMeasure<ScoreType>> createClassificationEvaluationMeasure() const = 0¶
Creates and returns a new object of type
IClassificationEvaluationMeasure.- Returns:
An unique pointer to an object of type
IClassificationEvaluationMeasurethat has been created
-
template<typename ScoreType>
class IRegressionEvaluationMeasureFactory¶ - #include <measure_evaluation.hpp>
Defines an interface for all factories that allow to create instances of the type
IRegressionEvaluationMeasure.- Template Parameters:
ScoreType – The type of the predicted scores
Public Functions
-
inline virtual ~IRegressionEvaluationMeasureFactory()¶
-
virtual std::unique_ptr<IRegressionEvaluationMeasure<ScoreType>> createRegressionEvaluationMeasure() const = 0¶
Creates and returns a new object of type
IRegressionEvaluationMeasure.- Returns:
An unique pointer to an object of type
IRegressionEvaluationMeasurethat has been created