aerdem4 / lofo-importance

Leave One Feature Out Importance
MIT License
810 stars 83 forks source link

I am not able to import Dataset #26

Closed ashutosh1919 closed 4 years ago

ashutosh1919 commented 4 years ago

from lofo import Dataset doesn't work and gives error of

cannot import name 'Dataset' from 'lofo'

But if I write from lofo.dataset import Dataset then it works fine.

I think it has something to do with init.py

aerdem4 commented 4 years ago

Can you give more information? Which lofo version are you using? Which Python version? Did you pip install or git clone?

It should be able to imported because this unit test passes: https://github.com/aerdem4/lofo-importance/blob/master/tests/test_lofo_importance.py#L5

ashutosh1919 commented 4 years ago

I have tried both using pip install and git clone and both doesn't work. I am using python version 3.6 and lofo-importance version 0.2.3

aerdem4 commented 4 years ago

I have created a clean virtualenv and tried to reproduce the issue now and couldn't reproduce.

ashutosh1919 commented 4 years ago

@aerdem4 , Let me try creating venv in my system and will try to use it. if I face the issue, i will make PR for this issue.

ashutosh1919 commented 4 years ago

Sorry for wrong issue @aerdem4 , It is working when I tried in venv. I think previously i was using 0.2.0. That's why it was not working.