SHARE
TWEET

Untitled

a guest Oct 21st, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. param_grid = {'preprocessing': [MinMaxScaler(),QuantileTransformer(output_distribution="uniform",n_quantiles=20)],
  2.               'feature_selection':[SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=9),
  3.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=10),
  4.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=11),
  5.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=12),
  6.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=13),
  7.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=14),
  8.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=15),
  9.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=16),
  10.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=17),
  11.                                    SelectFromModel(LogisticRegression(solver="liblinear",penalty='l2',C=1),max_features=18),
  12.                                    PCA(n_components=9,random_state=17),
  13.                                    PCA(n_components=10,random_state=17),
  14.                                    PCA(n_components=11,random_state=17),
  15.                                    PCA(n_components=12,random_state=17),
  16.                                    PCA(n_components=13,random_state=17),
  17.                                    PCA(n_components=14,random_state=17),
  18.                                    PCA(n_components=15,random_state=17),
  19.                                    PCA(n_components=16,random_state=17),
  20.                                    PCA(n_components=17,random_state=17),
  21.                                    PCA(n_components=18,random_state=17)],
  22.               'classifier__penalty':['l1','l2'],
  23.               'classifier__C':[0.01,0.1,1.0,10,100]}
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
 
Top