viisar / brew

⛔️ DEPRECATED brew: Python Ensemble Learning API
MIT License
301 stars 70 forks source link

from brew.base import Ensemble #9

Closed annahpryor closed 8 years ago

annahpryor commented 8 years ago

I'm not sure if this is the place to ask this, but I couldn't find anywhere else. I found out about your package on Stack Overflow and wanted to use it. I installed it on my system using pip install and it seems to be there. However, when I try to implement the example on Stack Overflow, I need to import Ensemble and EnsembleClassifier from brew.base and it is not able to do that. When I look in the brew directory, I see a base.py file, but no Ensemble etc. Have I loaded the entire package? Can you help me be able to import these packages?

dvro commented 8 years ago

@annahpryor ,

Here it works fine:

In [1]: from brew.base import Ensemble
In [2]: from brew.base import EnsembleClassifier

Try to upgrade your pip version, uninstall the brew package and install it again.

Also, make sure you haven't downloaded the package on a local directory and it is importing from the brew project, instead of the brew package.