Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer AutoML with auto_sklearn2 | End-to-End AutoML Systems
Introduction to AutoML

bookAutoML with auto_sklearn2

Veeg om het menu te tonen

AutoML systems such as auto_sklearn2 automate the most time-consuming and technically challenging parts of the machine learning workflow. When you use auto_sklearn2, it automatically performs:

  • Data preprocessing;
  • Feature engineering;
  • Model selection;
  • Hyperparameter tuning.

You do not need to manually test different algorithms or tune their parameters one at a time. auto_sklearn2 explores a wide range of models and configurations for you, using advanced optimization techniques to search for the best-performing pipeline on your dataset.

The system also includes built-in ensembling, so your final model benefits from the strengths of several algorithms combined together.

from sklearn.datasets import load_digits
from sklearn.model_selection import train_test_split
from auto_sklearn2.classification import AutoMLClassifier

# Load a sample dataset
X, y = load_digits(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=42)

# Initialize and fit AutoMLClassifier from auto_sklearn2
automl = AutoMLClassifier(
    time_left_for_this_task=120,   # total runtime for the search
    per_run_time_limit=30,         # limit per model evaluation
    ensemble_size=50,
    seed=42
)
automl.fit(X_train, y_train)

# Display the leaderboard of discovered models
print(automl.leaderboard(X_test, y_test, detailed=True))
Note
Note

Use auto_sklearn2 when working with tabular datasets that have many features and potential model choices. It is especially effective for structured data where manual model selection and tuning would be tedious or complex. Compared to earlier versions, auto_sklearn2 offers improved optimization, resource management, and an updated AutoMLClassifier interface for more efficient automated machine learning.

question mark

What does auto_sklearn2 do if a model fails during training?

Select the correct answer

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 2

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Sectie 3. Hoofdstuk 2
some-alt