Ultralytics YOLO27: Join the waitlist.
License YOLO
Back to Ultralytics Glossary

Automated Machine Learning (AutoML)

Automated machine learning (AutoML) automates model selection, hyperparameter tuning, and feature preparation. How search works, tools, and YOLO tuning.

Automated machine learning (AutoML) is the automation of the trial-and-error work in building a machine learning (ML) model: preparing features, choosing an algorithm, setting its hyperparameters, and sometimes designing a network architecture or combining several models. Given a dataset, a target metric, and a compute budget, an AutoML system searches over candidate pipelines, scores each on held-out data, and returns the best one it finds. The Auto-WEKA project framed the core of this task as the combined algorithm selection and hyperparameter optimization (CASH) problem, a formulation that later tools such as auto-sklearn adopted. AutoML gives non-specialists strong baselines and saves experts the repetitive part of experimentation.

How AutoML Works#

An AutoML system has three ingredients. The search space defines what can vary, from data preprocessing and feature engineering steps to the model family, such as linear regression, XGBoost, or a neural network, and each family's settings, such as the learning rate. The search strategy picks which candidates to try, using random search, Bayesian optimization that models which regions of the space look promising, or evolutionary algorithms that mutate and recombine good configurations. The evaluation step scores each candidate on validation data or with cross-validation. Many systems also warm-start the search with meta-learning from earlier datasets and finish by combining the best candidates into a model ensemble.

Training every candidate to completion is the main cost, so multi-fidelity methods first train many configurations cheaply and spend more only on the promising ones. Successive halving, the building block of Hyperband, repeats one round until a single configuration remains:

A large search can also overfit the validation data, since the winner is partly the luckiest of many candidates, which is why the final model is scored on a separate test set.

AutoML Tools#

  • AutoGluon: An open-source library started at Amazon that trains many model types on tabular, text, image, and time series data and stacks them into an ensemble.
  • auto-sklearn: Searches scikit-learn pipelines with Bayesian optimization, meta-learning, and ensemble construction.
  • FLAML: A Microsoft library that targets low-cost search for tabular models and hyperparameters.
  • Optuna: A hyperparameter optimization framework whose pruners stop unpromising trials early, often used as the search engine inside custom AutoML loops.
  • Google Cloud AutoML: A managed service, now part of Gemini Enterprise Agent Platform, formerly Vertex AI, that trains image classification, object detection, and tabular models without code.
  • Amazon SageMaker Autopilot: AWS's AutoML service, whose interface now lives in SageMaker Canvas.

For small tables, tabular foundation models offer a different route to the same goal, predicting from the training rows in context without a per-dataset search.

Automated Tuning for YOLO#

For computer vision models with a fixed, pretrained architecture, automated search usually targets the training recipe. Ultralytics YOLO's model.tune() evolves 26 training hyperparameters by default, including learning rate, momentum, loss gains, and augmentation strengths: each iteration mutates and recombines the best configurations found so far, trains briefly, and records the fitness, and the run saves best_hyperparameters.yaml with plots of fitness across iterations. Passing use_ray=True hands the search to Ray Tune instead.

from ultralytics import YOLO

# Load a pretrained YOLO26 model to tune
model = YOLO("yolo26n.pt")

# Evolve hyperparameters: each iteration mutates the best configurations so far, trains, and scores fitness
model.tune(data="coco8.yaml", epochs=30, iterations=10, plots=False, save=False, val=False)
  • Hyperparameter tuning: Optimizes the settings of one chosen model. AutoML usually includes it as one stage of a wider search that also chooses the model.
  • Neural architecture search (NAS): The branch of AutoML that designs network architectures, such as layer types, depths, and connections.
  • Transfer learning: Starts from a pretrained model rather than from scratch. AutoML systems often search over pretrained backbones, which makes the two complementary.
  • Machine learning operations (MLOps): Covers the whole lifecycle around a model, including deployment, monitoring, and retraining, and often runs AutoML as one step of a training pipeline.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning