|
template<typename T > |
std::vector< std::vector< size_t > > | mltk::validation::generateConfusionMatrix (Data< T > &samples, Learner< T > &learner) |
| Compute the confusion matrix for a given trained classifier. More...
|
|
template<typename T > |
ValidationReport | mltk::validation::metricsReport (const Data< T > &data, const std::vector< std::vector< size_t > > &cfm, std::vector< int > positive_labels=std::vector< int >()) |
| Generates a report with classifiers metrics. More...
|
|
template<typename T , typename Classifier > |
double | mltk::validation::accuracy (const Data< T > &data, Classifier &model, bool trained=true) |
|
double | mltk::validation::confusionMatrixAccuracy (const std::vector< std::vector< size_t > > &conf_matrix) |
| Compute the accuracy based on a confusion matrix. More...
|
|
ValidationReport | mltk::validation::classificationReport (const Point< int > &real, const Point< int > &predicted) |
|
template<typename T > |
std::vector< TrainTestPair< T > > | mltk::validation::kfoldsplit (Data< T > &samples, size_t folds=5, bool stratified=true, bool keepIndex=true, size_t seed=0) |
| Split the data in k folds. More...
|
|
template<typename T > |
std::vector< TrainTestPair< T > > | mltk::validation::kfoldsplit (Data< T > &samples, size_t folds, size_t qtde, bool stratified=true, bool keepIndex=true, size_t seed=0) |
| Split the data in k folds multiplied by the number of executions. More...
|
|
template<typename T > |
TrainTestPair< T > | mltk::validation::partTrainTest (Data< T > &data, size_t fold, bool stratified=true, bool keepIndex=true, size_t seed=0) |
| Divide the samples in training and test set. More...
|
|
template<typename T > |
ValidationReport | mltk::validation::kfold (Data< T > sample, classifier::Classifier< T > &classifier, size_t fold, bool stratified=true, size_t seed=0, int verbose=0) |
| Executes k-fold stratified cross-validation. More...
|
|
template<typename T > |
ValidationReport | mltk::validation::kkfold (Data< T > samples, classifier::Classifier< T > &classifier, size_t qtde, size_t fold, bool stratified=true, size_t seed=0, int verbose=0) |
| Executes the validation with several executions of the k fold algorithm. More...
|
|