Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Build a Baseline Pipeline | Fundamentals of AutoML
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Introduction to AutoML
Sezione 1. Capitolo 4
single

single

bookChallenge: Build a Baseline Pipeline

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt