fastai / fastbook

The fastai book, published as Jupyter Notebooks
Other
21.51k stars 8.33k forks source link

Import treeinterpreter and waterfall_charts before plotting #chap_09 #600

Open fakhar-iqbal opened 1 year ago

fakhar-iqbal commented 1 year ago

Before running predictions,bias,contributions = treeinterpreter.predict(m,row.values) they were not imported. from treeinterpreter import treeinterpreter

And before running waterfall(valid_xs_final.columns, contributions[0],threshold=0.08,rotation_value=45,formatting='{:,.3f}'); it was not imported, from waterfall_chart import plot as waterfall