|
@@ -124,14 +124,14 @@ class GenericClassifierSelection
|
|
|
} else if ( ( classifier_type == "gp_laplace_rbf_onevsall" ) ) {
|
|
|
std::string kernel_type = conf->gS ( "Kernel", "kernel_function", "rbf" );
|
|
|
classifier = new KCGPLaplaceOneVsAll ( conf, GenericKernelSelection::selectKernel ( conf, kernel_type ) );
|
|
|
- } else if ( StringTools::regexMatch ( classifier_type, "^one_vs_one\\(([^\\)]+)\\)$", submatches ) && ( submatches.size() == 2 ) ) {
|
|
|
+ } else if ( NICE::StringTools::regexMatch ( classifier_type, "^one_vs_one\\(([^\\)]+)\\)$", submatches ) && ( submatches.size() == 2 ) ) {
|
|
|
classifier = new VCOneVsOne ( conf, selectVecClassifier ( conf, submatches[1] ) );
|
|
|
- } else if ( StringTools::regexMatch ( classifier_type, "^one_vs_all\\(([^\\)]+)\\)$", submatches ) && ( submatches.size() == 2 ) ) {
|
|
|
+ } else if ( NICE::StringTools::regexMatch ( classifier_type, "^one_vs_all\\(([^\\)]+)\\)$", submatches ) && ( submatches.size() == 2 ) ) {
|
|
|
classifier = new VCOneVsAll ( conf, selectVecClassifier ( conf, submatches[1] ) );
|
|
|
- } else if ( StringTools::regexMatch ( classifier_type, "^random_forest\\(([^\\)]+)\\)$", submatches ) && ( submatches.size() == 2 ) ) {
|
|
|
+ } else if ( NICE::StringTools::regexMatch ( classifier_type, "^random_forest\\(([^\\)]+)\\)$", submatches ) && ( submatches.size() == 2 ) ) {
|
|
|
classifier = new VCPreRandomForest ( conf, "VCPreRandomForest", selectVecClassifier ( conf, submatches[1] ) );
|
|
|
} else {
|
|
|
- fthrow ( Exception, "Classifier type " << classifier_type << " not (yet) supported." << std::endl <<
|
|
|
+ fthrow ( NICE::Exception, "Classifier type " << classifier_type << " not (yet) supported." << std::endl <<
|
|
|
"(genericClassifierSelection.h contains a list of classifiers to choose from)" );
|
|
|
}
|
|
|
|