UFJF - Machine Learning Toolkit  0.51.8
mltk::featselect::RFE< T > Class Template Reference
Inheritance diagram for mltk::featselect::RFE< T >:
Collaboration diagram for mltk::featselect::RFE< T >:

Public Member Functions

 RFE (const Data< T > &samples, classifier::Classifier< T > *classifier, int final_dim, validation::CrossValidation *cv=nullptr, int skip=1, int jump=1, bool leave_one_out=false)
 
Data< T > selectFeatures () override
 Function that executes the feature selection phase. More...
 
- Public Member Functions inherited from mltk::featselect::FeatureSelection< double >
void setSamples (const std::shared_ptr< Data< double > > &samples)
 setSamples Set the samples used for the FeatureSelection. More...
 
void setSamples (const Data< double > &samples)
 
void setClassifier (classifier::Classifier< double > *classifier)
 setClassifier Set the classifier used for the FeatureSelection. More...
 
void setFinalDimension (int final_dim)
 setFinalDimension Set the classifier used for the FeatureSelection. More...
 
void setDepth (int depth)
 setDepth Set the depth of the search. More...
 
void setJump (int jump)
 setJump Set the jump value. More...
 
void setSkip (int skip)
 setSkip Set the skip value. More...
 
void setVerbose (int verbose)
 setVerbose Set the verbose level. More...
 
void setCrossValidation (validation::CrossValidation *cv)
 setCrossValidation Set the cross validation structure. More...
 

Additional Inherited Members

- Protected Attributes inherited from mltk::featselect::FeatureSelection< double >
std::shared_ptr< Data< double > > samples
 Attributes. More...
 
classifier::Classifier< double > * classifier
 Classifier used by the method. More...
 
validation::CrossValidationcv
 Structure to hold the cross-validation result. More...
 
Solution solution
 Solution of the feature selection. More...
 
Timer timer
 Timer for time measuring. More...
 
const int MAX_DEPTH
 Max depth of search constant. More...
 
const int MAX_BREATH
 Max breadth of search constant. More...
 
const double NUM_ERROR_EPS
 Error tolerance constant. More...
 
int depth
 Depth of search. More...
 
int final_dim
 Final dimension. More...
 
int jump
 Jump size. More...
 
int skip
 Number of levels to be skipped. More...
 
bool leave_one_out
 Leave one out. More...
 
int verbose
 Verbose level. More...
 

Member Function Documentation

◆ selectFeatures()

template<typename T >
Data< T > mltk::featselect::RFE< T >::selectFeatures
overridevirtual

Function that executes the feature selection phase.

Returns
void std::shared_ptr<Data< T > >

Implements mltk::featselect::FeatureSelection< double >.


The documentation for this class was generated from the following file: