Skip to content

Instantly share code, notes, and snippets.

@tiaplagata
Created November 15, 2020 23:38
Show Gist options
  • Save tiaplagata/fbae35ea2a2d46d2445ffad584df91a2 to your computer and use it in GitHub Desktop.
Save tiaplagata/fbae35ea2a2d46d2445ffad584df91a2 to your computer and use it in GitHub Desktop.
Define Basic Pipeline
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import RandomForestClassifier
basic_pipe = pipeline(steps=[
('scaler', StandardScaler()),
('estimator', RandomForestClassifier())
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment