輸出結果

設計思路
核心代碼
wineGBMModel = ensemble.GradientBoostingRegressor(n_estimators=nEst,
max_depth=depth,
learning_rate=learnRate,
subsample = subSamp,
loss='ls')
wineGBMModel.fit(xTrain, yTrain)
msError = []
predictions = wineGBMModel.staged_predict(xTest)