Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Scaling the Features | Preprocessing Data with Scikit-learn
ML Introduction with scikit-learn
course content

Kursinhalt

ML Introduction with scikit-learn

ML Introduction with scikit-learn

1. Machine Learning Concepts
2. Preprocessing Data with Scikit-learn
3. Pipelines
4. Modeling

book
Challenge: Scaling the Features

In this challenge, you need to scale the features using StandardScaler. The data is the penguins dataset (encoded and with no missing values).

12345
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a65bbc96-309e-4df9-a790-a1eb8c815a1c/penguins_imputed_encoded.csv') print(df)
copy

Here is a little reminder of the StandardScaler class.

Aufgabe

Swipe to start coding

  1. Import the class that standardizes features by making the mean equal to 0 and the variance equal to 1.
  2. Initialize the scaler.
  3. Scale the X matrix of features.

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 2. Kapitel 11
toggle bottom row

book
Challenge: Scaling the Features

In this challenge, you need to scale the features using StandardScaler. The data is the penguins dataset (encoded and with no missing values).

12345
import pandas as pd df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a65bbc96-309e-4df9-a790-a1eb8c815a1c/penguins_imputed_encoded.csv') print(df)
copy

Here is a little reminder of the StandardScaler class.

Aufgabe

Swipe to start coding

  1. Import the class that standardizes features by making the mean equal to 0 and the variance equal to 1.
  2. Initialize the scaler.
  3. Scale the X matrix of features.

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 2. Kapitel 11
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
We're sorry to hear that something went wrong. What happened?
some-alt