Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

what does scalar.fit do

from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
x_train = scaler.fit(x_train) # calc mean & variance of each of the features
x_train = scaler.transform(x_train) # transform features using mean & variance 
x_train = scaler.fit_transform(x_train) # or just do both at once using this
Comment

PREVIOUS NEXT
Code Example
Python :: how to make a yes or no question in python 
Python :: kaggle set utility script 
Python :: heatmap colorbar label 
Python :: python output 
Python :: problème barbier semaphore python 
Python :: find sum of all elements in a matrix by python 
Python :: corpus.fit(sentences, window=10) 
Python :: 405 Method Not Allowed When Redirecting in Flask within POST route 
Python :: plot bar 
Python :: python pandas to visualise the tangent of a curve 
Python :: how to make a typing effect in python 
Python :: KeyError: 0 python 
Python :: python for loop skip iteration if condition not met jinja 
Python :: element tree no able to find tag 
Python :: difflib get close matches 
Python :: for loop the string from reverse order and skipping last element in string python 
Python :: ring create an application to ask the user about his/her name. 
Python :: matplotlib plot dpi - change format to retina instead of svg 
Python :: talib 
Python :: instead of: newlist = [] for i in range(1, 100): if i % 2 == 0: newlist.append(i**2) 
Python :: Find dataframe column values containing a certain string 
Python :: how to hash out a big paragraph in vs code python 
Python :: pls help i need tkintwr help plspslspslspsl help tkinter 
Python :: add values to pandas plot 
Python :: python assign variable to another variable 
Python :: jupyter notebook do not show matplotlib text above plot 
Python :: how to make an instagram report bot python 
Python :: python long numbers as string 
Python :: decode base64 password python 
Python :: REMINER VIA MAIL 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =