Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # preprocessing and creating the pipe
- pca_components = PCA()
- std_scaler = StandardScaler()
- preprocess = FeatureUnion([("std",std_scaler), ("pca", pca_components)])
- model = LogisticRegression()
- pipe = Pipeline([("preprocess", preprocess),
- ("classifier", model)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement