24 class ClassificationModel;
36 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
43 void crossValidation(
int k,
bool restore=1);
49 void setCVRes(
double d);
51 void testInputData(
bool transform=0);
54 const Eigen::MatrixXd* getConfusionMatrix();
57 const Eigen::VectorXd* getClassResults();
61 void bootstrap(
int k,
bool restore=1);
66 const Eigen::MatrixXd& yRandomizationTest(
int runs,
int k);
69 double getAccuracyCV();
72 double getAccuracyInputTest();
74 void selectStat(
int s);
76 void saveToFile(
string filename)
const;
78 void saveToFile(
string filename,
const double& quality_input_test,
const double& predictive_quality)
const;
80 void readFromFile(
string filename);
90 void testAllSubstances(
bool transform);
93 void calculateAverageSensitivity();
96 void calculateWeightedSensitivity();
99 void calculateOverallAccuracy();
102 void calculateAverageMCC();
105 void calculateOverallMCC();
116 Eigen::MatrixXd confusion_matrix_;
119 Eigen::VectorXd class_results_;
123 double quality_input_test_;
141 #endif // REGVALIDATION
BALL_EXTERN_VARIABLE const double k