unstale

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 init

@unstale/cli on npm

flaml 258 changes

Breaking changes 4

  • Using a binary-only metric with multiclass data now raises a clear error.

    2.8.0release notes

  • Time-series cross-validation now includes the latest observation.

    2.8.0release notes

  • The autogen.agent module path was changed to autogen.agentchat.

    2.0.0release notes

  • GenericAgent was renamed to ResponsiveAgent.

    2.0.0release notes

New APIs and options 14

  • Adds an optional resampler keyword argument for per-fold class-imbalance handling.

    2.7.0release notes

  • Generates timestamps for time series predictions when test data is not provided.

    2.6.0release notes

  • Adds configurable label overlap handling for the classification holdout strategy.

    2.5.0release notes

  • The LGBMEstimator search space adds the objective parameter.

    2.5.0release notes

  • Task-level and estimator-level preprocessors are exposed as a public API.

    2.5.0release notes

  • The entire AutoML instance can now be pickled, allowing developers to serialize it.

    2.4.1release notes

  • Agents support an asynchronous mode.

    2.0.0release notes

  • Auto-reply methods can be pluggable, with registration improvements and configurable default replies.

    2.0.0release notes

  • An automl option was created to remove unnecessary dependencies for autogen and tune.

    2.0.0release notes

  • Support was added for more Azure OpenAI api_type values.

    2.0.0release notes

  • OpenAI model function calls are supported in agents.

    2.0.0release notes

  • Support was expanded for OpenAI models, including gpt-3.5-turbo and gpt-4 in autogen.

    2.0.0release notes

  • RetrieveChat was added.

    2.0.0release notes

  • Time series-related functionality was factored into a time series Task object.

    2.0.0release notes

Behavior and default changes 4

  • Search-space processing continues after encountering a list low-cost point.

    2.8.0release notes

  • Suggested configurations are independent of the portfolio.

    2.8.0release notes

  • Integration with Spark was enhanced.

    2.0.0release notes

  • tune now supports string values for alg.

    2.0.0release notes

Fixes and other changes 36

  • Categorical encoding now uses sklearn OrdinalEncoder as its source of truth.

    2.8.0release notes

  • Spark tuning prevents forest prediction from running with zero workers.

    2.8.0release notes

  • The MAPE metric now receives sample weights.

    2.8.0release notes

  • Missing datetimes are preserved for median imputation.

    2.8.0release notes

  • Naive and seasonal-naive forecasts now match their definitions.

    2.8.0release notes

  • Integer sampling now includes the documented inclusive upper bound.

    2.8.0release notes

  • ROUGE loss adaptation now supports scalar Evaluate results.

    2.8.0release notes

  • Normalization of singleton integer search spaces is corrected.

    2.8.0release notes

  • Panel data with non-monthly frequency now computes time_idx in steps.

    2.8.0release notes

  • R² inputs are no longer reversed when calculating time-series estimator scores.

    2.8.0release notes

  • Training logs are appended safely.

    2.8.0release notes

  • Preserves anonymous tuning metrics whose value is zero.

    2.7.0release notes

  • Categorical codes are fixed at fit time, and unseen values trigger a warning.

    2.7.0release notes

  • Float sampling now honors unit quantization.

    2.7.0release notes

  • Handles mixed-type conditional parameters.

    2.7.0release notes

  • Forwards free_mem_ratio from compute_estimator to the evaluation.

    2.7.0release notes

  • Fixes crashes and misaligned sample weights when preparing data with non-shuffled or group holdout splits.

    2.7.0release notes

  • SGD, logistic regression, random forest, and XGBoost estimators now honor random_seed for reproducible results.

    2.7.0release notes

  • Supports recent scikit-learn changes, including LRL1/LRL2 deprecations and fitted-state detection when reloading MLflow autologged models.

    2.7.0release notes

  • Naive forecasters support statsmodels 0.15, and future forecast horizons are corrected.

    2.7.0release notes

  • Trial averages are computed from per-metric report counts.

    2.7.0release notes

  • Fixes compatibility with pandas 3.0, including StringDtype, datetime resolution, deprecated APIs, and pyspark.pandas imports.

    2.6.0release notes

  • Adds a build-system section and migrates packaging metadata to PEP 621 to unblock editable installs.

    2.6.0release notes

  • Fixes BaseEstimator type detection for ensembles to support scikit-learn 1.7+.

    2.6.0release notes

  • Pins setuptools below version 82 to prevent a pkg_resources not found error.

    2.6.0release notes

  • Selects parameters according to the Transformers version to support v4.26+ and v5.0+.

    2.6.0release notes

  • Preserves FLAML_sample_size in best_config_per_estimator.

    2.5.0release notes

  • Fixes an OptunaSearch warning for non-hierarchical spaces with Ray Tune domains.

    2.5.0release notes

  • Adds validation and clear error messages for the custom_metric parameter.

    2.5.0release notes

  • Fixes eval_set preprocessing for XGBoost estimators when categorical features are present.

    2.5.0release notes

  • FLAML adds support for Python 3.13.

    2.5.0release notes

  • Fixes nested dictionary merging that could lose sampled hyperparameters.

    2.5.0release notes

  • Fixes an IndexError when logging training metrics for time series models.

    2.4.0release notes

  • Fixes an OSError caused by too many open files.

    2.4.0release notes

  • Official support for Python 3.12 is added.

    2.4.0release notes

  • code_execution_config is listed among the release changes.

    2.0.0release notes

flaml 12 changes

New APIs and options 1

  • Adds metric constraints in flaml.automl, allowing developers to constrain metrics during AutoML.

    1.0.0release notes

Fixes and other changes 1