Commit 29207968 authored by Maria Dimashova's avatar Maria Dimashova

minor

parent 96503991
...@@ -2064,18 +2064,18 @@ public: ...@@ -2064,18 +2064,18 @@ public:
// 1 - file can not be opened or is not correct // 1 - file can not be opened or is not correct
int read_csv(const char* filename); int read_csv(const char* filename);
const CvMat* get_values(){ return values; }; const CvMat* get_values(){ return values; }
const CvMat* get_responses(); const CvMat* get_responses();
const CvMat* get_missing(){ return missing; }; const CvMat* get_missing(){ return missing; }
void set_response_idx( int idx ); // old response become predictors, new response_idx = idx void set_response_idx( int idx ); // old response become predictors, new response_idx = idx
// if idx < 0 there will be no response // if idx < 0 there will be no response
int get_response_idx() { return response_idx; } int get_response_idx() { return response_idx; }
const CvMat* get_train_sample_idx() { return train_sample_idx; }; const CvMat* get_train_sample_idx() { return train_sample_idx; }
const CvMat* get_test_sample_idx() { return test_sample_idx; }; const CvMat* get_test_sample_idx() { return test_sample_idx; }
void mix_train_and_test_idx(); void mix_train_and_test_idx();
void set_train_test_split( const CvTrainTestSplit * spl); void set_train_test_split( const CvTrainTestSplit * spl);
...@@ -2083,7 +2083,7 @@ public: ...@@ -2083,7 +2083,7 @@ public:
void chahge_var_idx( int vi, bool state ); // state == true to set vi-variable as predictor void chahge_var_idx( int vi, bool state ); // state == true to set vi-variable as predictor
const CvMat* get_var_types(); const CvMat* get_var_types();
int get_var_type( int var_idx ) { return var_types->data.ptr[var_idx]; }; int get_var_type( int var_idx ) { return var_types->data.ptr[var_idx]; }
// following 2 methods enable to change vars type // following 2 methods enable to change vars type
// use these methods to assign CV_VAR_CATEGORICAL type for categorical variable // use these methods to assign CV_VAR_CATEGORICAL type for categorical variable
// with numerical labels; in the other cases var types are correctly determined automatically // with numerical labels; in the other cases var types are correctly determined automatically
...@@ -2093,10 +2093,10 @@ public: ...@@ -2093,10 +2093,10 @@ public:
void change_var_type( int var_idx, int type); // type in { CV_VAR_ORDERED, CV_VAR_CATEGORICAL } void change_var_type( int var_idx, int type); // type in { CV_VAR_ORDERED, CV_VAR_CATEGORICAL }
void set_delimiter( char ch ); void set_delimiter( char ch );
char get_delimiter() { return delimiter; }; char get_delimiter() { return delimiter; }
void set_miss_ch( char ch ); void set_miss_ch( char ch );
char get_miss_ch() { return miss_ch; }; char get_miss_ch() { return miss_ch; }
protected: protected:
virtual void clear(); virtual void clear();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment