Fix Initialize worse_model_count if model accuracy is better in BoostAODE
This commit is contained in:
parent
1986d05c34
commit
8f3bb47cfd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user