Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sklearn cheat sheet

>>> from sklearn.preprocessing import StandardScaler
>>> scaler = StandardScaler().fit(X_train)
>>> standardized_X = scaler.transform(X_train)
>>> standardized_X_test = scaler.transform(X_test)
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #sklearn #cheat #sheet
ADD COMMENT
Topic
Name
5+7 =