Development version
This is the latest (dev) documentation. It may contain unreleased features or breaking changes. For the stable release, use stable.
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, …).
Hyperparameter Search
| Example | What it covers |
|---|---|
| Comparing Search Methods | Side-by-side: GASearchCV vs RandomizedSearchCV vs GridSearchCV |
| Advanced Random Forest Tuning | Smart initialization, warm starts, diversity control, fitness sharing, local search, adaptive schedules |
| Pipeline Regression | Pipeline parameter naming, regression scorers, search visualization |
| Conditional Choices in a Pipeline | Encode each valid SVM kernel and parameter combination once |
| Hyperparameter Search with a Precomputed Kernel | Fit an SVC on a square training kernel and score a rectangular test kernel |
| Custom Outlier Scoring Without Labels | Tune a detector and select features with the same unlabeled scorer |
Feature Selection
| Example | What it covers |
|---|---|
| Finding the Signal in 60 Columns | GAFeatureSelectionCV recovers the signal from a dataset that is two-thirds noise, beating the all-features baseline |
| Feature Selection for Multi-Output Regression | Select one feature mask for multiple targets and report each target's test error |
| Feature Selection for Categorical Columns | Select raw columns with an encoder fitted inside each fold |
| Warm-Start Feature Selection | Reuse a known feature subset and score it on a new batch |
| Advanced RF + Feature Selection | Feature selection after hyperparameter tuning |
Multi-Metric and Refit
| Example | What it covers |
|---|---|
| Multi-Metric Search on Imbalanced Data | Multiple scorers that genuinely disagree, choosing the refit metric, inspecting per-metric cv_results_ |
Experiment Tracking
| Example | What it covers |
|---|---|
| MLflow 3 Experiment Tracking | Parent/child runs, dataset inputs, logged models, model lifecycle tags |
Visualization
| Example | What it covers |
|---|---|
| Plotting Gallery | plot_fitness_evolution, plot_history, plot_search_space |
Persistence
| Example | What it covers |
|---|---|
| Checkpointing and Persistence | ModelCheckpoint, save, load, inspecting checkpoint contents |