pypi / flaml
flaml
What changed in flaml 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
5 new APIs and options21 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initflaml 226 changes
New APIs and options 5
Adds an optional resampler keyword argument for per-fold class-imbalance handling.
Generates timestamps for time series predictions when test data is not provided.
Adds configurable label overlap handling for the classification holdout strategy.
The LGBMEstimator search space adds the objective parameter.
Task-level and estimator-level preprocessors are exposed as a public API.
Fixes and other changes 21
Preserves anonymous tuning metrics whose value is zero.
Categorical codes are fixed at fit time, and unseen values trigger a warning.
Float sampling now honors unit quantization.
Handles mixed-type conditional parameters.
Forwards free_mem_ratio from compute_estimator to the evaluation.
Fixes crashes and misaligned sample weights when preparing data with non-shuffled or group holdout splits.
SGD, logistic regression, random forest, and XGBoost estimators now honor random_seed for reproducible results.
Supports recent scikit-learn changes, including LRL1/LRL2 deprecations and fitted-state detection when reloading MLflow autologged models.
Naive forecasters support statsmodels 0.15, and future forecast horizons are corrected.
Trial averages are computed from per-metric report counts.
Fixes compatibility with pandas 3.0, including StringDtype, datetime resolution, deprecated APIs, and pyspark.pandas imports.
Adds a build-system section and migrates packaging metadata to PEP 621 to unblock editable installs.
Fixes BaseEstimator type detection for ensembles to support scikit-learn 1.7+.
Pins setuptools below version 82 to prevent a pkg_resources not found error.
Selects parameters according to the Transformers version to support v4.26+ and v5.0+.
Preserves FLAML_sample_size in best_config_per_estimator.
Fixes an OptunaSearch warning for non-hierarchical spaces with Ray Tune domains.
Adds validation and clear error messages for the custom_metric parameter.
Fixes eval_set preprocessing for XGBoost estimators when categorical features are present.
FLAML adds support for Python 3.13.
Fixes nested dictionary merging that could lose sampled hyperparameters.