Created
July 19, 2023 18:41
-
-
Save kururu-abdo/e2537da98c7c196826a9e44bc337ff0f to your computer and use it in GitHub Desktop.
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 | |
| Input=[('scale',StandardScaler()),('model',LinearRegression())] | |
| pipe=Pipeline(Input) | |
| pipe.fit(df[['horsepower' ,'col1']],y) | |
| ypipe=pipe.predict(df[['horsepower' ,'col1']) | |
| ypipe[0:10] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment