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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -