Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda AutoML Workflow Overview | Fundamentals of AutoML
/
Introduction to AutoML

bookAutoML Workflow Overview

Deslize para mostrar o menu

The AutoML workflow automates several steps in the machine learning process to streamline building effective models. The main stages typically include:

  1. Data preprocessing: clean, transform, and prepare data for modeling;
  2. Feature engineering: create, select, or transform features to boost model performance;
  3. Model selection: choose the best algorithm for the task;
  4. Hyperparameter tuning: optimize algorithm settings for best results;
  5. Evaluation: assess model performance on unseen data.

Each of these steps can be a source of complexity and potential error when done manually, which is why AutoML systems focus on automating them for you.

from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.impute import SimpleImputer
from sklearn.ensemble import RandomForestClassifier

# Chain preprocessing and model training steps in a pipeline
pipeline = Pipeline([
    ("imputer", SimpleImputer(strategy="mean")),
    ("scaler", StandardScaler()),
    ("classifier", RandomForestClassifier(n_estimators=100, random_state=42))
])

# Example usage:
pipeline.fit(X_train, y_train)
predictions = pipeline.predict(X_test)
Note
Note

Always use Pipeline objects to combine preprocessing and modeling steps. This prevents data leakage by ensuring that transformations are learned only on training data and then applied to validation or test sets.

question mark

Which step in the AutoML workflow is most prone to human error?

Select the correct answer

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 2

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Seção 1. Capítulo 2
some-alt