fastbook
fastbook copied to clipboard
Import treeinterpreter and waterfall_charts before plotting #chap_09
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