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

single

bookChallenge: Build a Baseline Pipeline

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 4
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt