26 #ifndef CLASVALIDATION
27 #define CLASVALIDATION
37 #include <gsl/gsl_randist.h>
38 #include <gsl/gsl_cdf.h>
46 class ClassificationModel;
63 void crossValidation(
int k,
bool restore=1);
69 void setCVRes(
double d);
71 void testInputData(
bool transform=0);
74 const BALL::Matrix<double>* getConfusionMatrix();
77 const BALL::Vector<double>* getClassResults();
81 void bootstrap(
int k,
bool restore=1);
86 const BALL::Matrix<double>& yRandomizationTest(
int runs,
int k);
89 double getAccuracyCV();
92 double getAccuracyInputTest();
94 void selectStat(
int s);
96 void saveToFile(
string filename)
const;
98 void saveToFile(
string filename,
const double& quality_input_test,
const double& predictive_quality)
const;
100 void readFromFile(
string filename);
110 void testAllSubstances(
bool transform);
113 void calculateAverageSensitivity();
116 void calculateWeightedSensitivity();
119 void calculateOverallAccuracy();
122 void calculateAverageMCC();
125 void calculateOverallMCC();
161 #endif // REGVALIDATION