from sklearn.ensemble import AdaBoostClassifier
from sklearn.grid_search import GridSearchCV
param_grid = {'base_estimator__criterion': ['gini', 'entropy'],
    'base_estimator__splitter': ['best', 'random'], 'n_estimators': [1, 2]}
Using GridSearchCV with AdaBoost and DecisionTreeClassifier