Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. def execute_pipeline(features,target)
  2. '''
  3. Takes in features(X) and target(y) and performs a grid search
  4. by Logistic Regression, SVM, and Random Forest.
  5. '''
  6. import numpy as np
  7. from scipy.stats import uniform
  8. from sklearn.linear_model import LogisticRegression
  9. from sklearn.model_selection import GridSearchCV
  10. from sklearn.pipeline import Pipeline, FeatureUnion
  11. from sklearn.decomposition import PCA
  12. from sklearn.preprocessing import StandardScaler
  13. from sklearn.svm import SVC
  14. from sklearn.ensemble import RandomForestClassifier
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement