parrt / dtreeviz

A python library for decision tree visualization and model interpretation.
MIT License
2.94k stars 331 forks source link

cannot import name 'dtreeviz' from 'dtreeviz.trees #320

Open pablocp-stockfink opened 5 months ago

pablocp-stockfink commented 5 months ago

ImportError Traceback (most recent call last) C:\Users\PCALAT~1\AppData\Local\Temp/ipykernel_9448/3963414832.py in ----> 1 from dtreeviz.trees import dtreeviz # remember to load the package 2 3 viz = dtreeviz(regr, X, y, 4 target_name="target", 5 feature_names=boston.feature_names)

ImportError: cannot import name 'dtreeviz' from 'dtreeviz.trees'

I have just started to use the library but Iam facing this issue.

tlapusan commented 5 months ago

@pablocp-stockfink it seems that your are using an old code example on a new library version.

You can find examples with the latest code in the notebooks folder: https://github.com/parrt/dtreeviz/tree/master/notebooks.