python - plot_partial_dependence in sklearn not showing -
i wrote down code suggested in examples following code not show anything.
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()
what doing wrong?
i had plt.show(), seems figure gets embedded matplotlib's main grid.
Comments
Post a Comment