#ifndef IGMDK_MACHINELEARNING_H #define IGMDK_MACHINELEARNING_H #include "ClassificationCommon.h" #include "RandomForest.h" #include "KernelSVM.h" namespace igmdk{ template struct SmartFSLearner { typedef FeatureSubsetLearner MODEL; MODEL model; public: template SmartFSLearner(DATA const& data, int limit = 20): model(data, selectFeaturesSmart(SCVRiskFunctor,DATA>( data), getD(data), limit)) {} int predict(NUMERIC_X const& x)const{return model.predict(x);} }; class SimpleBestCombiner { BestCombiner c; public: template SimpleBestCombiner(DATA const& data) { c.addNoParamsClassifier(data, SCVRiskFunctor< NoParamsLearner, EMPTY, DATA>(data)); c.addNoParamsClassifier(data, SCVRiskFunctor< NoParamsLearner, EMPTY, DATA>(data)); } int predict(NUMERIC_X const& x)const{return c.predict(x);} }; }//end namespace #endif