Built-in metric functions for tracking search progress. These functions are used by MetricsTracker to compute per-batch summaries.
Details
All metric functions follow the signature:
They return a single numeric value. The ... can receive additional
context like test data, known optimum, evaluation grid, etc.
Optimization Metrics
metric_best_y: Best observed value (for minimization)metric_worst_y: Worst observed valuemetric_regret: Gap between current best and known optimummetric_simple_regret: Same as regret (alias)
Learning Metrics
metric_model_rmse: Surrogate RMSE on test datametric_model_mae: Surrogate MAE on test datametric_model_r2: Surrogate R-squared on test datametric_mean_variance: Average prediction variance on a gridmetric_max_variance: Maximum prediction variance on a gridmetric_integrated_variance: Integral of variance over domain