2 #include "../CEBLModel.hpp"
11 this->selected_classifier =
"";
13 for(
unsigned int i=0; i<paths.size();i++)
15 string path = paths[i]+
"plugins/classifiers/";
18 plugin_loader->
loadDir(path.c_str());
47 std::vector<string> names = plugin_loader->
getNames();
60 classifier = this->selected_classifier;
63 if(plugin_loader->
getPlugin(classifier) != NULL)
76 return this->selected_classifier;
94 string classifier = selected_classifier;
100 string classifier = selected_classifier;
106 string classifier = selected_classifier;
112 string classifier = selected_classifier;
122 classifier = this->selected_classifier;
125 if(plugin_loader->
getPlugin(classifier)!=NULL)
136 this->selected_classifier = classifier;
137 if(plugin_loader->
getPlugin(classifier) == NULL)
139 cerr <<
"ERROR: trying to select classifier " << classifier
140 <<
" which doesn't seem to exist.\n";
147 classifier = this->selected_classifier;
150 this->is_training =
true;
151 this->currently_training_classifier = classifier;
156 this->is_training =
false;
167 plugin_loader->
getPlugin(currently_training_classifier)->
halt();
171 cerr <<
"error halting training.\n";
174 this->is_training =
false;
182 classifier = this->selected_classifier;
201 string classifier = selected_classifier;
210 string classifier = selected_classifier;
217 ublas::matrix<double> d = data;