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).
12345import 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)
Here is a little reminder of the StandardScaler
class.
Aufgabe
Swipe to start coding
- Import the class that standardizes features by making the mean equal to 0 and the variance equal to 1.
- Initialize the scaler.
- Scale the
X
matrix of features.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 11
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 3.13
Challenge: Scaling the Features
Swipe um das Menü anzuzeigen
In this challenge, you need to scale the features using StandardScaler
. The data is the penguins dataset (encoded and with no missing values).
12345import 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)
Here is a little reminder of the StandardScaler
class.
Aufgabe
Swipe to start coding
- Import the class that standardizes features by making the mean equal to 0 and the variance equal to 1.
- Initialize the scaler.
- Scale the
X
matrix of features.
Lösung
War alles klar?
Danke für Ihr Feedback!
Awesome!
Completion rate improved to 3.13Abschnitt 2. Kapitel 11
single