Skip to content

Examples

End-to-end runnable examples from real use cases. Each example is self-contained — you can copy the code directly into a script or notebook.

Looking for deeper tutorials?

The Tutorials section covers comprehensive walkthroughs for XGBoost, LightGBM, CatBoost, multi-stage feature selection, and imbalanced classification — each with baseline comparisons, visualizations, and practical notes.

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
Feature Selection With Noisy DataGAFeatureSelectionCV on Iris with 12 added noise features
Advanced RF + Feature SelectionFeature selection after hyperparameter tuning

Multi-Metric and Refit

ExampleWhat it covers
Multi-Metric Search on IrisMultiple scorers, choosing refit metric, inspecting cv_results_ per metric

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.