a guest Jun 18th, 2019 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def execute_pipeline(features,target)
- Takes in features(X) and target(y) and performs a grid search
- by Logistic Regression, SVM, and Random Forest.
- import numpy as np
- from scipy.stats import uniform
- from sklearn.linear_model import LogisticRegression
- from sklearn.model_selection import GridSearchCV
- from sklearn.pipeline import Pipeline, FeatureUnion
- from sklearn.decomposition import PCA
- from sklearn.preprocessing import StandardScaler
- from sklearn.svm import SVC
- from sklearn.ensemble import RandomForestClassifier
RAW Paste Data