SHARE
TWEET

Untitled

a guest Jun 18th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top