|
| CVBase () |
| Assert that MLAlgorithm doesn't take any additional basic parameters like numClasses.
|
|
| CVBase (const size_t numClasses) |
| Assert that MLAlgorithm takes the numClasses parameter and store it. More...
|
|
| CVBase (const data::DatasetInfo &datasetInfo, const size_t numClasses) |
| Assert that MLAlgorithm takes the numClasses parameter and a data::DatasetInfo parameter and store them. More...
|
|
template<typename... MLAlgorithmArgs> |
MLAlgorithm | Train (const MatType &xs, const PredictionsType &ys, const MLAlgorithmArgs &... args) |
| Train MLAlgorithm with given data points, predictions, and hyperparameters depending on what CVBase constructor has been called.
|
|
template<typename... MLAlgorithmArgs> |
MLAlgorithm | Train (const MatType &xs, const PredictionsType &ys, const WeightsType &weights, const MLAlgorithmArgs &... args) |
| Train MLAlgorithm with given data points, predictions, weights, and hyperparameters depending on what CVBase constructor has been called.
|
|
template<typename MLAlgorithm, typename MatType, typename PredictionsType, typename WeightsType>
class mlpack::cv::CVBase< MLAlgorithm, MatType, PredictionsType, WeightsType >
An auxiliary class for cross-validation.
It serves to handle basic non-data constructor parameters of a machine learning algorithm (like datasetInfo or numClasses) and to assert that the machine learning algorithm and data satisfy certain conditions.
This class is not meant to be used directly by users. To cross-validate rather use end-user classes like SimpleCV or KFoldCV.
- Template Parameters
-
MLAlgorithm | A machine learning algorithm. |
MatType | The type of data. |
PredictionsType | The type of predictions (labels/responses). |
WeightsType | The type of weights. It supposed to be void* when weights are not supported. |