Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pdpbox import pdp
- import plotly.offline as py
- from plotly.tools import mpl_to_plotly
- py.init_notebook_mode(connected=False)
- for f in feats:
- pdp_dist = pdp.pdp_isolate(model=model, dataset=X, model_features=X.columns, feature=f)
- fig, axes = pdp.pdp_plot(pdp_dist, f, figsize=(8, 6), plot_params={
- # plot title and subtitle
- 'title': f,
- 'title_fontsize': 15,
- 'subtitle_fontsize': 10,
- })
- py.iplot(mpl_to_plotly(fig))
Add Comment
Please, Sign In to add comment