Skills2026年5月12日·1 分钟阅读

FLAML — Fast Lightweight AutoML by Microsoft

FLAML finds accurate machine learning models with low computational cost using a cost-frugal search strategy, supporting classification, regression, NLP, and time series tasks.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
FLAML AutoML
通用 CLI 安装命令
npx tokrepo install cc0538c6-4ddd-11f1-9bc6-00163e2b0d79

Introduction

FLAML (Fast and Lightweight AutoML) is a library from Microsoft Research that finds high-quality ML models at minimal cost. Its cost-frugal optimization strategy allocates more budget to promising configurations and less to unpromising ones, often matching or beating other AutoML tools in a fraction of the time.

What FLAML Does

  • Automatically selects models and tunes hyperparameters for tabular data
  • Supports classification, regression, and time-series forecasting
  • Provides a generic hyperparameter tuning API for any custom learner
  • Integrates with scikit-learn, XGBoost, LightGBM, and CatBoost
  • Optimizes within a user-specified time or iteration budget

Architecture Overview

FLAML implements a cost-frugal search strategy called BlendSearch that combines Bayesian optimization with bandit-based pruning. It starts with cheap learners like linear models, estimates their potential, and progressively allocates budget to more expensive models like gradient boosting. The search adapts the evaluation cost dynamically based on observed performance.

Self-Hosting & Configuration

  • Install via pip with optional extras for specific learners
  • Call automl.fit() with your data, task type, and time_budget
  • Specify metric (accuracy, f1, rmse, etc.) to match your goal
  • Use estimator_list to restrict which model types are explored
  • Enable early stopping for neural network or deep learning models

Key Features

  • Cost-frugal search finds good models faster than random or grid search
  • Zero-config API that works out of the box for common tasks
  • Time-series forecasting with automated feature engineering
  • Custom learner support for integrating any estimator
  • Lightweight with minimal dependencies beyond scikit-learn

Comparison with Similar Tools

  • Auto-sklearn — uses Bayesian optimization with meta-learning; FLAML is faster with its cost-frugal approach
  • TPOT — genetic programming over pipeline structures; FLAML focuses on efficient hyperparameter search
  • H2O AutoML — full platform with Java backend; FLAML is pure Python and more lightweight
  • Optuna — general hyperparameter tuning; FLAML adds automated model selection on top

FAQ

Q: How does FLAML choose which model to try first? A: FLAML starts with cheap learners and uses cost-aware search to decide when to move to more expensive models.

Q: Can I use FLAML for deep learning? A: Yes. FLAML supports PyTorch and TensorFlow models via its custom learner interface.

Q: What is the minimum time budget? A: Even 10-60 seconds can produce reasonable results on small datasets.

Q: Does FLAML support parallel trials? A: Yes. Set n_concurrent_trials > 1 and optionally use Ray for distributed execution.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产