Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Build a Baseline Pipeline | Fundamentals of AutoML
/
Introduction to AutoML
Sección 1. Capítulo 4
single

single

bookChallenge: Build a Baseline Pipeline

Desliza para mostrar el menú

Tarea

Swipe to start coding

You need to create a machine learning pipeline that standardizes input features and fits a classification model.

  1. Load the Iris dataset.
  2. Split it into training and test sets.
  3. Create a pipeline that:
    • Uses StandardScaler to standardize the data;
    • Uses RandomForestClassifier as the model.
  4. Fit the pipeline on the training data.
  5. Predict on the test data.
  6. Calculate accuracy using accuracy_score and assign it to the variable accuracy.

Make sure to print the value of accuracy at the end.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt