Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sciket learn imputer code

from sklearn.preprocessing import Imputerimputer = Imputer(missing_values = 'NaN', strategy = 'mean', axis = 0)imputer = imputer.fit(X[:, 1:3])X[:, 1:3] = imputer.transform(X[:, 1:3])
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #sciket #learn #imputer #code
ADD COMMENT
Topic
Name
9+5 =