Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # preprocessing and creating the pipe
  2. pca_components = PCA()
  3. std_scaler = StandardScaler()
  4. preprocess = FeatureUnion([("std",std_scaler), ("pca", pca_components)])
  5. model = LogisticRegression()
  6. pipe = Pipeline([("preprocess", preprocess),
  7. ("classifier", model)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement