Fix FCBF in select_features

This commit is contained in:
Ricardo Montañana Gómez 2024-03-06 18:24:27 +01:00
parent debd890519
commit cbe15e317d
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE

View File

@ -101,7 +101,7 @@ namespace bayesnet {
}
if (hyperparameters.contains("select_features")) {
auto selectedAlgorithm = hyperparameters["select_features"];
std::vector<std::string> algos = { SelectFeatures.IWSS, SelectFeatures.CFS, SelectFeatures.CFS };
std::vector<std::string> algos = { SelectFeatures.IWSS, SelectFeatures.CFS, SelectFeatures.FCBF };
selectFeatures = true;
select_features_algorithm = selectedAlgorithm;
if (std::find(algos.begin(), algos.end(), selectedAlgorithm) == algos.end()) {