ntucllab / libact

Pool-based active learning in Python
http://libact.readthedocs.org/
BSD 2-Clause "Simplified" License
776 stars 174 forks source link

ModuleNotFoundError: No module named 'libact.query_strategies.multilabel' #110

Closed charlesity closed 7 years ago

charlesity commented 7 years ago

HI all,

I have installed libact package in my ubuntu OS but for some reason i cant run the alce_plot.py and multilabel_plot.py examples. I keep getting the ModuleNotFoundError for the module name 'libact.query_strategies.multilabel'

Please help! Regards

yangarbiter commented 7 years ago

Can you provide more information like environment variables or the version that you're running on?

My initial guess is that you didn't successfully installed the latest version since you seems to be able to import libact dataset successfully.

You may try upgrading 'pip install --upgrade libact==0.1.3b0' and see what happens.

charlesity commented 7 years ago

Thank you very much, apparently i was running a previous version. You may try upgrading 'pip install --upgrade libact==0.1.3b0' did it for me.

However, I am trying to implement a modified parallel active learning algorithm based on query-by-committee query strategy for application in biomedical imaging (my PhD work) and I have been hitting serious deadlock and zombie process issues, if you wouldnt mind, I would love some advice

Thanks once again

On 4 April 2017 at 14:49, yangarbiter notifications@github.com wrote:

Can you provide more information like environment variables or the version that you're running on?

My initial guess is that you didn't successfully installed the latest version since you seems to be able to import libact dataset successfully.

You may try upgrading 'pip install --upgrade libact==0.1.3b0' and see what happens.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ntucllab/libact/issues/110#issuecomment-291505346, or mute the thread https://github.com/notifications/unsubscribe-auth/AHFhVUpHgXR2Vlbgp4aANnmXqPxey05dks5rskpdgaJpZM4Mw9sM .

-- Charles I. Saidu

yangarbiter commented 7 years ago

By parallel query-by-committee (QBC) you mean training the models in QBC in parallel right?

The simplest way I would recommend is changing this for loop (https://github.com/ntucllab/libact/blob/master/libact/query_strategies/query_by_committee.py#L173) with a parallel for with joblib (https://pythonhosted.org/joblib/parallel.html).

charlesity commented 7 years ago

Yes! training the models in parallel. Wow, I'm glad I had this conversation with you. Thank you so much.

I will keep in touch. Regards, Charles

On Apr 5, 2017 2:03 AM, "yangarbiter" notifications@github.com wrote:

By parallel query-by-committee (QBC) you mean training the models in QBC in parallel right?

The simplest way I would recommend is changing this for loop ( https://github.com/ntucllab/libact/blob/master/libact/ query_strategies/query_by_committee.py#L173) with a parallel for with joblib (https://pythonhosted.org/ joblib/parallel.html).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ntucllab/libact/issues/110#issuecomment-291695525, or mute the thread https://github.com/notifications/unsubscribe-auth/AHFhVWQnWveiCTx4L6vQsNUGDcXC3JSNks5rsuhzgaJpZM4Mw9sM .

yangarbiter commented 7 years ago

I'll close this issue for now.

Thank you for reporting :)