关于RandomizedSearchCV 和GridSearchCV(区别:参数个数的选择方式)
# -*- coding: utf-8 -*-
"""
Created on Tue Aug 09 22:38:37 2016 @author: Administrator
"""
import time
import numpy as np
from sklearn.datasets import load_digits
from sklearn.ensemble import RandomForestClassifier
from sklearn.grid_search import GridSearchCV
from sklearn.grid_search import RandomizedSearchCV # 生成数据
digits = load_digits()
X, y = digits.data, digits.target # 元分类器
meta_clf = RandomForestClassifier(n_estimators=20) # =================================================================
# 设置参数
param_dist = {"max_depth": [3, None],
"max_features": [1,5,7,11],
"min_samples_split": [1,5,7,11],
"min_samples_leaf": [1,5,7,11],
"bootstrap": [True, False],
"criterion": ["gini", "entropy"]} # 运行随机搜索 RandomizedSearch
n_iter_search = 20
rs_clf = RandomizedSearchCV(meta_clf, param_distributions=param_dist,n_iter=n_iter_search) start = time.time()
rs_clf.fit(X, y)
print("RandomizedSearchCV took %.2f seconds for %d candidates parameter settings." % ((time.time() - start), n_iter_search))
print(rs_clf.grid_scores_) # =================================================================
# 设置参数
param_grid = {"max_depth": [3, None],
"max_features": [1, 3, 10],
"min_samples_split": [1, 3, 10],
"min_samples_leaf": [1, 3, 10],
"bootstrap": [True, False],
"criterion": ["gini", "entropy"]} # 运行网格搜索 GridSearch
gs_clf = GridSearchCV(meta_clf, param_grid=param_grid)
start = time.time()
gs_clf.fit(X, y) print("GridSearchCV took %.2f seconds for %d candidate parameter settings." % (time.time() - start, len(gs_clf.grid_scores_)))
print(gs_clf.grid_scores_)
RandomizedSearchCV took 8.64 seconds for 20 candidates parameter settings.
[mean: 0.78075, std: 0.00987, params: {'bootstrap': True, 'min_samples_leaf': 11, 'max_features': 11, 'criterion': 'gini', 'min_samples_split': 7, 'max_depth': 3},mean: 0.90874, std: 0.01377, params: {'bootstrap': False, 'min_samples_leaf': 7, 'max_features': 11, 'criterion': 'entropy', 'min_samples_split': 1, 'max_depth': None}, mean: 0.90929, std: 0.01682, params: {'bootstrap': True, 'min_samples_leaf': 5, 'max_features': 11, 'criterion': 'gini', 'min_samples_split': 1, 'max_depth': None}, mean: 0.91987, std: 0.01263, params: {'bootstrap': False, 'min_samples_leaf': 5, 'max_features': 5, 'criterion': 'gini', 'min_samples_split': 1, 'max_depth': None}, mean: 0.79911, std: 0.00789, params: {'bootstrap': False, 'min_samples_leaf': 11, 'max_features': 5, 'criterion': 'entropy', 'min_samples_split': 11, 'max_depth': 3}, mean: 0.91764, std: 0.01220, params: {'bootstrap': True, 'min_samples_leaf': 1, 'max_features': 11, 'criterion': 'entropy', 'min_samples_split': 7, 'max_depth': None}, mean: 0.90874, std: 0.01730, params: {'bootstrap': False, 'min_samples_leaf': 11, 'max_features': 7, 'criterion': 'gini', 'min_samples_split': 7, 'max_depth': None}, mean: 0.76628, std: 0.01378, params: {'bootstrap': True, 'min_samples_leaf': 1, 'max_features': 1, 'criterion': 'gini', 'min_samples_split': 7, 'max_depth': 3}, mean: 0.79076, std: 0.01176, params: {'bootstrap': False, 'min_samples_leaf': 5, 'max_features': 7, 'criterion': 'gini', 'min_samples_split': 7, 'max_depth': 3}, mean: 0.91152, std: 0.01354, params: {'bootstrap': False, 'min_samples_leaf': 1, 'max_features': 1, 'criterion': 'entropy', 'min_samples_split': 7, 'max_depth': None}, mean: 0.78854, std: 0.02561, params: {'bootstrap': True, 'min_samples_leaf': 5, 'max_features': 5, 'criterion': 'entropy', 'min_samples_split': 1, 'max_depth': 3}, mean: 0.80078, std: 0.00885, params: {'bootstrap': False, 'min_samples_leaf': 1, 'max_features': 5, 'criterion': 'gini', 'min_samples_split': 5, 'max_depth': 3}, mean: 0.92098, std: 0.00853, params: {'bootstrap': False, 'min_samples_leaf': 5, 'max_features': 7, 'criterion': 'gini', 'min_samples_split': 5, 'max_depth': None}, mean: 0.83751, std: 0.01976, params: {'bootstrap': True, 'min_samples_leaf': 11, 'max_features': 1, 'criterion': 'gini', 'min_samples_split': 5, 'max_depth': None}, mean: 0.82415, std: 0.01263, params: {'bootstrap': True, 'min_samples_leaf': 1, 'max_features': 5, 'criterion': 'entropy', 'min_samples_split': 11, 'max_depth': 3}, mean: 0.75348, std: 0.01295, params: {'bootstrap': True, 'min_samples_leaf': 5, 'max_features': 1, 'criterion': 'entropy', 'min_samples_split': 7, 'max_depth': 3}, mean: 0.83472, std: 0.00987, params: {'bootstrap': True, 'min_samples_leaf': 11, 'max_features': 1, 'criterion': 'gini', 'min_samples_split': 7, 'max_depth': None}, mean: 0.80690, std: 0.01698, params: {'bootstrap': False, 'min_samples_leaf': 11, 'max_features': 5, 'criterion': 'gini', 'min_samples_split': 7, 'max_depth': 3}, mean: 0.75014, std: 0.01576, params: {'bootstrap': True, 'min_samples_leaf': 11, 'max_features': 1, 'criterion': 'entropy', 'min_samples_split': 7, 'max_depth': 3}, mean: 0.73901, std: 0.03013, params: {'bootstrap': True, 'min_samples_leaf': 7, 'max_features': 1, 'criterion': 'entropy', 'min_samples_split': 5, 'max_depth': 3}]
GridSearchCV took 83.70 seconds for 216 candidate parameter settings.
[mean: 0.74124, std: 0.04157, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.76405, std: 0.01263, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.75348, std: 0.03088, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.77852, std: 0.03227, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.75960, std: 0.03054, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.77017, std: 0.00473, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.74402, std: 0.01357, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.76183, std: 0.00884, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.77017, std: 0.03727, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.78186, std: 0.06008, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.79633, std: 0.02073, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.80579, std: 0.02625, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.79911, std: 0.02291, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.81135, std: 0.02082, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.81135, std: 0.01920, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.80301, std: 0.01797, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.79243, std: 0.03765, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.80801, std: 0.01096, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.79911, std: 0.01477, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.80134, std: 0.00711, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.79744, std: 0.02293, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.79744, std: 0.03528, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.78019, std: 0.00396, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.80189, std: 0.00813, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.82359, std: 0.01467, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.82359, std: 0.01319, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.82805, std: 0.02549, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.89204, std: 0.00679, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.89872, std: 0.00912, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.89371, std: 0.01408, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.88759, std: 0.00447, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.87924, std: 0.01686, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.87535, std: 0.01052, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.84474, std: 0.01431, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.83306, std: 0.01119, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.83973, std: 0.00916, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.91486, std: 0.01694, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.92098, std: 0.00287, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.90929, std: 0.00997, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.91152, std: 0.00625, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.91152, std: 0.01342, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.90428, std: 0.00125, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.87590, std: 0.01876, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.88036, std: 0.00917, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.88815, std: 0.00252, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.92321, std: 0.00473, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.92321, std: 0.01109, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.91653, std: 0.01915, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.92321, std: 0.01501, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.92265, std: 0.02198, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.90317, std: 0.01417, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.88703, std: 0.01145, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.90150, std: 0.00629, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.89260, std: 0.01268, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.76628, std: 0.00791, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.77518, std: 0.00799, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.76238, std: 0.02122, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.76071, std: 0.02280, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.75403, std: 0.02968, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.73678, std: 0.00316, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.73011, std: 0.01752, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.73178, std: 0.03856, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.75292, std: 0.02576, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.79967, std: 0.00800, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80301, std: 0.01915, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.81859, std: 0.02460, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.79299, std: 0.01617, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80634, std: 0.00903, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.79132, std: 0.01720, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80022, std: 0.01453, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80746, std: 0.02161, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.81191, std: 0.00745, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.82415, std: 0.02950, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.78353, std: 0.00435, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.79744, std: 0.04214, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.81024, std: 0.02594, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.79132, std: 0.01355, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.81135, std: 0.01251, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.81302, std: 0.00774, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.80857, std: 0.00686, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.81135, std: 0.01074, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.90039, std: 0.00395, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.90150, std: 0.01320, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.87980, std: 0.01374, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.86255, std: 0.01479, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.88091, std: 0.00991, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.87479, std: 0.01820, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.85977, std: 0.00965, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.82916, std: 0.01385, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.83639, std: 0.01328, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.91764, std: 0.00323, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.91263, std: 0.01212, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.90818, std: 0.01799, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.90540, std: 0.00526, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.91708, std: 0.00769, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.90540, std: 0.00594, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.88370, std: 0.01752, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.88314, std: 0.00963, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.89037, std: 0.01578, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.92877, std: 0.00798, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.91987, std: 0.01263, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.90762, std: 0.00787, params: {'bootstrap': True, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.92265, std: 0.00998, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.91096, std: 0.01245, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.90985, std: 0.01621, params: {'bootstrap': True, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.90039, std: 0.01609, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.89816, std: 0.01323, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.90150, std: 0.00710, params: {'bootstrap': True, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.77852, std: 0.02133, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.77073, std: 0.01165, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.76962, std: 0.01427, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.75793, std: 0.02464, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.76906, std: 0.03421, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.76294, std: 0.02587, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.77685, std: 0.03590, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.73456, std: 0.02946, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.73845, std: 0.02582, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': 3}, mean: 0.80467, std: 0.02032, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.79855, std: 0.00326, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.81747, std: 0.00907, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.82526, std: 0.02012, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.80523, std: 0.02016, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.80913, std: 0.01341, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.79243, std: 0.03465, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.79800, std: 0.02354, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.80189, std: 0.00740, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': 3}, mean: 0.78130, std: 0.00870, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.80134, std: 0.01926, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.79967, std: 0.01231, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.81080, std: 0.01158, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.80134, std: 0.02685, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.80189, std: 0.01604, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.79967, std: 0.01343, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.78075, std: 0.01300, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.79354, std: 0.03434, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': 3}, mean: 0.90762, std: 0.00296, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.92154, std: 0.01392, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.90595, std: 0.01127, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.88536, std: 0.01691, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.89761, std: 0.00934, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.89538, std: 0.00433, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.86088, std: 0.00819, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.85921, std: 0.00209, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.84975, std: 0.01877, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 1, 'max_depth': None}, mean: 0.92599, std: 0.00677, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.92877, std: 0.00437, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.92766, std: 0.00722, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.91820, std: 0.01075, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.92543, std: 0.00361, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.91375, std: 0.00452, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.90206, std: 0.00984, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.90428, std: 0.01132, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.90039, std: 0.00661, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 3, 'max_depth': None}, mean: 0.92654, std: 0.00699, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.92599, std: 0.00634, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.92599, std: 0.01277, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.92710, std: 0.01446, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.91041, std: 0.01298, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.93545, std: 0.01421, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.91375, std: 0.00782, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.90707, std: 0.00664, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.90484, std: 0.01593, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'gini', 'max_features': 10, 'max_depth': None}, mean: 0.74290, std: 0.00923, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.75626, std: 0.00823, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.76016, std: 0.02916, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.74903, std: 0.01812, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.75904, std: 0.00323, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.74903, std: 0.02080, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.73957, std: 0.04381, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.75793, std: 0.02031, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.72510, std: 0.02120, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': 3}, mean: 0.82081, std: 0.02368, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80523, std: 0.01512, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80746, std: 0.02007, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80134, std: 0.01062, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80523, std: 0.02747, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.77574, std: 0.02552, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80356, std: 0.03652, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.79911, std: 0.00644, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.78297, std: 0.01264, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': 3}, mean: 0.80022, std: 0.02974, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.78186, std: 0.01814, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.77852, std: 0.00636, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.81135, std: 0.00350, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.78854, std: 0.00748, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.76906, std: 0.02057, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.76739, std: 0.01868, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.78631, std: 0.02088, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.80690, std: 0.01084, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': 3}, mean: 0.90762, std: 0.00800, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.91430, std: 0.00900, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.90595, std: 0.00495, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.88759, std: 0.00687, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.89093, std: 0.00730, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.88481, std: 0.01372, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.84140, std: 0.01263, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.85253, std: 0.02692, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.84808, std: 0.02225, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 1, 'max_depth': None}, mean: 0.93434, std: 0.00135, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.91375, std: 0.00740, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.92988, std: 0.00238, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.91653, std: 0.00467, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.91597, std: 0.00770, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.92543, std: 0.01502, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.89983, std: 0.00773, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.90985, std: 0.00839, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.90428, std: 0.00662, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 3, 'max_depth': None}, mean: 0.93267, std: 0.01880, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.92432, std: 0.01951, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.92098, std: 0.00897, params: {'bootstrap': False, 'min_samples_leaf': 1, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.92265, std: 0.01260, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.92654, std: 0.01771, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.92599, std: 0.01215, params: {'bootstrap': False, 'min_samples_leaf': 3, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.90150, std: 0.02026, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 1, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.89649, std: 0.01794, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 3, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}, mean: 0.91208, std: 0.00546, params: {'bootstrap': False, 'min_samples_leaf': 10, 'min_samples_split': 10, 'criterion': 'entropy', 'max_features': 10, 'max_depth': None}]
- GridSearchCV:
- Does exhaustive search over a grid of parameters.
- RandomizedSearchCV:
- Randomized search on hyper parameters.
-
RandomizedSearchCV implements a “fit” and a “score” method. It also implements “predict”, “predict_proba”, “decision_function”, “transform” and “inverse_transform” if they are implemented in the estimator used.
The parameters of the estimator used to apply these methods are optimized by cross-validated search over parameter settings.
In contrast to GridSearchCV, not all parameter values are tried out, but rather a fixed number of parameter settings is sampled from the specified distributions. The number of parameter settings that are tried is given by n_iter.
If all parameters are presented as a list, sampling without replacement is performed. If at least one parameter is given as a distribution, sampling with replacement is used. It is highly recommended to use continuous distributions for continuous parameters.
关于RandomizedSearchCV 和GridSearchCV(区别:参数个数的选择方式)的更多相关文章
- 机器学习入门-随机森林预测温度-不同参数对结果的影响调参 1.RandomedSearchCV(随机参数组的选择) 2.GridSearchCV(网格参数搜索) 3.pprint(顺序打印) 4.rf.get_params(获得当前的输入参数)
使用了RamdomedSearchCV迭代100次,从参数组里面选择出当前最佳的参数组合 在RamdomedSearchCV的基础上,使用GridSearchCV在上面最佳参数的周围选择一些合适的参数 ...
- 【转载】C语言 构建参数个数不固定函数
深入浅出可变参数函数的使用技巧本文主要介绍可变参数的函数使用,然后分析它的原理,程序员自己如何对它们实现和封装,最后是可能会出现的问题和避免措施. VA函数(variable argument fun ...
- JavaScript进阶系列04,函数参数个数不确定情况下的解决方案
本篇主要体验函数参数个数不确定情况下的一个解决方案.先来看一段使用函数作为参数进行计算的实例. var calculate = function(x, y, fn) { return fn(x, y) ...
- ResNeXt——与 ResNet 相比,相同的参数个数,结果更好:一个 101 层的 ResNeXt 网络,和 200 层的 ResNet 准确度差不多,但是计算量只有后者的一半
from:https://blog.csdn.net/xuanwu_yan/article/details/53455260 背景 论文地址:Aggregated Residual Transform ...
- ASP.NET三层架构之不确定查询参数个数的查询
在做三层架构的时候,特别是对表做查询的时候,有时候并不确定查询条件的个数,比如查询学生表:有可能只输入学号,或者姓名,或者性别,总之查询条件的参数个数并不确定,下面是我用List实现传值的代码: 附图 ...
- linux shell中判断bash脚本输入的参数个数
看下面的一段程序. #!/bin/bash ]; then echo "参数个数为$#个" else echo "没有参数" fi
- C# 给某个方法设定执行超时时间 C#如何控制方法的执行时间,超时则强制退出方法执行 C#函数运行超时则终止执行(任意参数类型及参数个数通用版)
我自己写的 /// <summary> /// 函数运行超时则终止执行(超时则返回true,否则返回false) /// </summary> /// <typepara ...
- JS函数arguments数组获得实际传参数个数
JS与PHP在函数传参方面有点不同,PHP形参与实参个数要匹配,而JS就灵活多了,可以随意传参,实参比形参少或多都不会报错. 实参比形参多不会报错 ? 1 2 3 4 5 function say(a ...
- Shell脚本中判断输入参数个数的方法投稿:junjie 字体:[增加 减小] 类型:转载
Shell脚本中判断输入参数个数的方法 投稿:junjie 字体:[增加 减小] 类型:转载 这篇文章主要介绍了Shell脚本中判断输入参数个数的方法,使用内置变量$#即可实现判断输入了多少个参数 ...
随机推荐
- Java -- JDBC 批处理
两种批处理方式: 采用Statement.addBatch(sql)方式实现批处理: •优点:可以向数据库发送多条不同的SQL语句. •缺点: •SQL语句没有预编译. •当向数据库发送多条语句相同, ...
- DelphiXE
1. http://blog.csdn.net/tp26021340/article/details/45953669 2. 3. 4. 5.
- 177. Nth Highest Salary
问题描述 解决方案 CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN declare number int; set numbe ...
- webservice 交错数组
net webservices public DataSet SelectOPQuestionByWhere(string strWhere, string[][] strArry) { if (!k ...
- 【51Nod】-1326 遥远的旅途
Description 一个国家有 N 个城市, 这些城市被标为 0,1,2,...N-1. 这些城市间连有 M 条道路, 每条 道路连接两个不同的城市, 且道路都是双向的. 一个小鹿喜欢在城市间沿着 ...
- MYSQL 索引创建与使用
可能用到索引的地方: where 子句,order by,group by 不需要创建索引的情况: 1. 表比较小 2.赋值有限的列(枚举),不要创建索引.创建的索引返回的行越少越好,此时区分度大. ...
- 用node.js可以开启静态服务 不需要借助apache 或者xampl
安装好了Node以及express,然后用express命令生成express架构, 目录结构下面有一个public页面, 把你的静态页面放到这个文件夹下, 通过npm start,开启服务就可以在浏 ...
- New Concept English three (57)
28w/m 54errors I stopped to let the car cool off and to study the map. I had expected to be near my ...
- 3.4 常用的两种 layer 层 3.7 字体与文本
3.4 常用的两种 layer 层 //在cocos2d-x中,经常使用到的两种 layer 层 : CCLayer 和 CCLayerColor //CCLayer 的创建 CCLayer* la ...
- php实现word在线浏览功能。
http://laoniangke.com/php/2012/10/08/php-doc-webview.html