modAL-python / modAL

A modular active learning framework for Python
https://modAL-python.github.io/
MIT License
2.24k stars 324 forks source link

AttributeError : 'Committe' object has no attribute 'score' #26

Closed rmfajri closed 6 years ago

rmfajri commented 6 years ago

AttributeError : 'Committe' object has no attribute 'score' in Query by comitte example.

cosmic-cortex commented 6 years ago

Can you post a snippet of your code which produces this error? Committee has no attribute score because it is a method.

rmfajri commented 6 years ago

I just copy and paste the code from https://github.com/cosmic-cortex/modAL/blob/master/examples/query_by_committee.py. The plotting works fine but resulted an error at the end. This code https://github.com/cosmic-cortex/modAL/blob/master/examples/ranked_batch_mode.py resulted ImportError: No module named 'modAL.batch'. Others such as pool-based-sampling.py works fine

cosmic-cortex commented 6 years ago

The modAL.batch module is not yet included in the package available from PyPI (which is modAL 0.3.0), for that to work, you need to install directly from github using

pip install git+https://github.com/cosmic-cortex/modAL.git

Same thing with the Committee.score, it is not yet included, but I'll make a new release in the following days and update the package at PyPI.

rmfajri commented 6 years ago

Thank you..