|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Convergence criteria for adaptive stopping in benchmarks. More...
#include <Benchmark.hpp>
Public Attributes | |
| float | cv = 0.05f |
| int | max = 200 |
| int | min = 10 |
| int | window = 3 |
Convergence criteria for adaptive stopping in benchmarks.
Instead of running a fixed number of iterations, convergence mode monitors the coefficient of variation (CV = std/mean) of timing measurements and stops once results are statistically stable.
The algorithm works as follows:
| float ppforest2::cli::ConvergenceCriteria::cv = 0.05f |
Target CV threshold (e.g., 0.05 = stop when std < 5% of mean).
| int ppforest2::cli::ConvergenceCriteria::max = 200 |
Hard upper bound on iterations (stops even if not converged).
| int ppforest2::cli::ConvergenceCriteria::min = 10 |
Minimum iterations before convergence checks begin.
| int ppforest2::cli::ConvergenceCriteria::window = 3 |
Number of consecutive iterations that must stay below the CV threshold.