parrt/dtreeviz

cannot import name 'dtreeviz' from 'dtreeviz.trees

Opened this issue · 1 comments


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.

@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.