When i\'ve done this part of code
from sklearn import ensemble clf = ensemble.GradientBoostingRegressor(n_estimators = 400, max_depth = 5