我写下了他们示例中建议的代码,但以下代码没有显示任何内容。
result=ensemble.GradientBoostingRegressor(n_estimators=2000,learning_rate=0.08,max_depth=4,min_samples_leaf=25,subsample=0.5,loss='huber')
result = result.fit(train_vars,train['d'])
features = ['a','b','c']
fig,axs = plot_partial_dependence(result, train_vars, features,feature_names=features, n_cols=2)
fig.show()
我究竟做错了什么?