Advertisement
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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement