Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pablocp-stockfink opened this issue Apr 20, 2024 · 1 comment
Open

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

pablocp-stockfink opened this issue Apr 20, 2024 · 1 comment

Comments

@pablocp-stockfink
Copy link


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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants