LAMDA-NJU / Deep-Forest

An Efficient, Scalable and Optimized Python Framework for Deep Forest (2021.2.1)
https://deep-forest.readthedocs.io
Other
913 stars 160 forks source link

question #122

Open xrhm31 opened 1 year ago

xrhm31 commented 1 year ago

I tried the example, but encountered some issues. Could you please advise me on how to solve them? ImportError: cannot import name 'CascadeForestClassifier' from 'deepforest' . image image

xuyxu commented 1 year ago

Please remove the first line and see what happens.

xrhm31 commented 1 year ago

I removed the first line, but still encountered the following error. image image

xuyxu commented 1 year ago

Please move your script try.py to a directory outside of the package directory. It looks like this causes the python fails to find the package.

xrhm31 commented 1 year ago

I tried it,and find it still error.

image image

xrhm31 commented 1 year ago

This is my init.py . image

xuyxu commented 1 year ago

See if CascadeForestClassifier could be successfully imported if you remove the __init__.py.

xrhm31 commented 1 year ago

I remove the init.py,then it still couldnot find the CascadeForestClassifier. image

ImportError: cannot import name 'CascadeForestClassifier' from 'deepforest' (unknown location)

xrhm31 commented 1 year ago

then I try to restore the init.py and change its code from github . but this has created new problems. image

sssuzr1 commented 3 months ago

dont use "pip install deepforest”, its wrong and in doc "pip install deep-forest" but it not work too "ERROR: No matching distribution found for deep-forest" so, i install it from source "python setup.py install" and it work