The MeanSquaredError is a metric of performance for regression algorithms that is equal to the mean squared error between predicted values and ground truth (correct) values for given test items.
More...
#include <mse.hpp>
|
template<typename MLAlgorithm , typename DataType , typename ResponsesType > |
static double | Evaluate (MLAlgorithm &model, const DataType &data, const ResponsesType &responses) |
| Run prediction and calculate the mean squared error. More...
|
|
The MeanSquaredError is a metric of performance for regression algorithms that is equal to the mean squared error between predicted values and ground truth (correct) values for given test items.
◆ Evaluate()
template<typename MLAlgorithm , typename DataType , typename ResponsesType >
double mlpack::cv::MSE::Evaluate |
( |
MLAlgorithm & |
model, |
|
|
const DataType & |
data, |
|
|
const ResponsesType & |
responses |
|
) |
| |
|
static |
Run prediction and calculate the mean squared error.
- Parameters
-
model | A regression model. |
data | Column-major data containing test items. |
responses | Ground truth (correct) target values for the test items, should be either a row vector or a column-major matrix. |
◆ NeedsMinimization
const bool mlpack::cv::MSE::NeedsMinimization = true |
|
static |
Information for hyper-parameter tuning code.
It indicates that we want to minimize the measurement.
The documentation for this class was generated from the following files: