X-Boost  2.3.8
Classes | Functions
Test.h File Reference

some function to test the classifier on the set More...

#include <set>
#include <iosfwd>
#include <iostream>

Go to the source code of this file.

Classes

struct  ReportTest
 

Functions

template<class ClassifierType , class TrainingSet >
void DumpRoc (std::ostream &out, const ClassifierType &classifier, const TrainingSet &train_set)
 TODO Va bene per chi ha response Template.
 
template<class ClassifierType , class TrainingSet >
void TestSimple (const ClassifierType &classifier, const TrainingSet &train_set, double th=0.0)
 TODO Va bene per chi ha response Template. More...
 
template<class DataType , class ClassifierType >
bool Test (const ClassifierType &c, const DataType &data, double threshold=0.0)
 
template<class DataType , class ClassifierType >
void detail::compute_response (double *r, const ClassifierType *c, const DataType *data, int s0, int s1)
 
template<class DataType , class ClassifierType >
ReportTest TestAndExportStat (const ClassifierType &c, const DataType &data, double threshold, int max_concurrent_jobs)
 
ReportTest ExportStat (const double *r, const int *category, int n_samples, double threshold)
 

Detailed Description

some function to test the classifier on the set

Function Documentation

ReportTest ExportStat ( const double *  r,
const int *  category,
int  n_samples,
double  threshold 
)

Execute test on classifier.

Note
Ouput on std::cout
it is a multithread method
template<class DataType , class ClassifierType >
bool Test ( const ClassifierType c,
const DataType &  data,
double  threshold = 0.0 
)

Execute test on classifier. Ouput on std::cout

template<class DataType , class ClassifierType >
ReportTest TestAndExportStat ( const ClassifierType c,
const DataType &  data,
double  threshold,
int  max_concurrent_jobs 
)

Execute test on classifier.

Note
Ouput on std::cout
it is a multithread method
template<class ClassifierType , class TrainingSet >
void TestSimple ( const ClassifierType classifier,
const TrainingSet &  train_set,
double  th = 0.0 
)

TODO Va bene per chi ha response Template.

a "simpler" version of test exploiting the "response" method of the classifier