Created
September 25, 2021 17:01
-
-
Save viditjain1/6bce694cad8bdc842c682190002e2818 to your computer and use it in GitHub Desktop.
pipeline_example.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.pipeline import Pipeline | |
from sklearn.preprocessing import StandardScaler | |
num_pipeline = Pipeline([('imputer',SimpleImputer(strategy='median')), | |
('attribs_adder',CombinedAttributesAdder()), | |
('std_scaler', StandardScaler())]) | |
housing_num_tr = num_pipeline.fit_transform(housing_num) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment