Skip to content

Examples

Short, focused recipes — each example is self-contained and demonstrates a single feature you can copy directly into a script or notebook.

Examples vs Tutorials

Examples are focused recipes that each show one capability (a scorer, a plot, checkpointing, …). Tutorials are longer, end-to-end walkthroughs of a complete real-world task — from raw data to a tuned, evaluated model — usually integrating a specific library (XGBoost, LightGBM, CatBoost, …).

ExampleWhat it covers
Comparing Search MethodsSide-by-side: GASearchCV vs RandomizedSearchCV vs GridSearchCV
Advanced Random Forest TuningSmart initialization, warm starts, diversity control, fitness sharing, local search, adaptive schedules
Pipeline RegressionPipeline parameter naming, regression scorers, search visualization

Feature Selection

ExampleWhat it covers
Finding the Signal in 60 ColumnsGAFeatureSelectionCV recovers the signal from a dataset that is two-thirds noise, beating the all-features baseline
Advanced RF + Feature SelectionFeature selection after hyperparameter tuning

Multi-Metric and Refit

ExampleWhat it covers
Multi-Metric Search on Imbalanced DataMultiple scorers that genuinely disagree, choosing the refit metric, inspecting per-metric cv_results_

Experiment Tracking

ExampleWhat it covers
MLflow 3 Experiment TrackingParent/child runs, dataset inputs, logged models, model lifecycle tags

Visualization

ExampleWhat it covers
Plotting Galleryplot_fitness_evolution, plot_history, plot_search_space

Persistence

ExampleWhat it covers
Checkpointing and PersistenceModelCheckpoint, save, load, inspecting checkpoint contents

Released under the MIT License.