openavmkit.tuning
Hyperparameter tuning for tree-based models.
Uses Optuna to search hyperparameter spaces for XGBoost, LightGBM, and
CatBoost models with k-fold cross-validation, optimizing for mean absolute
percentage error. Called from :mod:openavmkit.modeling when a model entry
requests tuning rather than fixed parameters.
All public APIs are private (underscore-prefixed) — tuning is invoked indirectly through model setup, not as a user-facing operation.
catboost_one_hot_max_size
catboost_one_hot_max_size(categories='auto', platform=None)
CatBoost's one_hot_max_size for a model entry's categories setting, or None for CatBoost's own default.
Source code in openavmkit/tuning.py
105 106 107 108 109 110 111 112 113 114 | |
catboost_thread_count
catboost_thread_count()
The threads a CatBoost fit or CV here may use: the fold's share when folds run in parallel
(OPENAVMKIT_CATBOOST_THREADS), else the trial-level cap (OPENAVMKIT_TUNE_WORKERS), else CatBoost's own
default (every core).
Source code in openavmkit/tuning.py
58 59 60 61 62 63 64 65 66 67 68 69 | |