pypi / flaml
flaml
What changed in flaml 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
4 breaking15 new APIs and options4 behavior and defaults37 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initflaml 258 changes
Breaking changes 4
Using a binary-only metric with multiclass data now raises a clear error.
Time-series cross-validation now includes the latest observation.
The autogen.agent module path was changed to autogen.agentchat.
GenericAgent was renamed to ResponsiveAgent.
New APIs and options 14
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.
The entire AutoML instance can now be pickled, allowing developers to serialize it.
Agents support an asynchronous mode.
Auto-reply methods can be pluggable, with registration improvements and configurable default replies.
An automl option was created to remove unnecessary dependencies for autogen and tune.
Support was added for more Azure OpenAI api_type values.
OpenAI model function calls are supported in agents.
Support was expanded for OpenAI models, including gpt-3.5-turbo and gpt-4 in autogen.
RetrieveChat was added.
Time series-related functionality was factored into a time series Task object.
Behavior and default changes 4
Search-space processing continues after encountering a list low-cost point.
Suggested configurations are independent of the portfolio.
Integration with Spark was enhanced.
tune now supports string values for alg.
Fixes and other changes 36
Categorical encoding now uses sklearn OrdinalEncoder as its source of truth.
Spark tuning prevents forest prediction from running with zero workers.
The MAPE metric now receives sample weights.
Missing datetimes are preserved for median imputation.
Naive and seasonal-naive forecasts now match their definitions.
Integer sampling now includes the documented inclusive upper bound.
ROUGE loss adaptation now supports scalar Evaluate results.
Normalization of singleton integer search spaces is corrected.
Panel data with non-monthly frequency now computes time_idx in steps.
R² inputs are no longer reversed when calculating time-series estimator scores.
Training logs are appended safely.
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.
Fixes an IndexError when logging training metrics for time series models.
Fixes an OSError caused by too many open files.
Official support for Python 3.12 is added.
code_execution_config is listed among the release changes.
flaml 12 changes
New APIs and options 1
Adds metric constraints in flaml.automl, allowing developers to constrain metrics during AutoML.
Fixes and other changes 1
FLAML handles failing trials.