Fix Initialize worse_model_count if model accuracy is better in BoostAODE

This commit is contained in:
2024-03-11 22:33:50 +01:00
parent 1986d05c34
commit 8f3bb47cfd

View File

@@ -282,6 +282,12 @@ namespace bayesnet {
}
exitCondition = n_models >= maxModels && repeatSparent || worse_model_count > tolerance;
}
if (worse_model_count > tolerance) {
notes.push_back("Convergence threshold reached & last model eliminated");
significanceModels.pop_back();
models.pop_back();
n_models--;
}
if (featuresUsed.size() != features.size()) {
notes.push_back("Used features in train: " + std::to_string(featuresUsed.size()) + " of " + std::to_string(features.size()));
status = WARNING;