Question: 1 ) from sklearn.preprocessing import MinMaxScaler 2 ) normalization = MinMaxScaler ( ) 3 ) x _ scaled = normalization.fit ( X _ train )
from sklearn.preprocessing import MinMaxScaler
normalization MinMaxScaler
xscaled normalization.fitXtrain
xtrainnormalized xscaled.transformXtrain
xtestnormalized xscaled.transformXtest
yscaled normalization.fitYtrain.reshapelenYtrain
ytrainnormalized yscaled.transformYtrain.reshapelenYtrainflatten
ytestnormalized yscaled.transformYtest.reshapelenYtestflatten
Which of the following sentences is incorrect?
Group of answer choices
In line we store the information about the scaling transformation on the label in the variable yscaled.
In line we normalize the training set by subtracting its minimum value and dividing by the range length.
In line we store the information about the scaling transformation on the feature in the variable xscaled.
In line we normalize the test set by subtracting its minimum value and dividing by the range length.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
