Closed OskarLiew closed 4 years ago
I saw that this issue was fixed in the source code. In the same way as I did, no less. I have version 0.3.5 of modAL that was installed via pip version 20.2.2 and python version 3.7.
Is it possible to upload this fix to pip?
Hi! Sorry for the issue, I haven't made a new release a long time ago :( I have created the release 0.3.6 with all the fixes since the previous release. It should be available in PyPI now. I'll close the issue, but feel free to open it up if there is something wrong in 0.3.6!
Hello, me again.
Stumbled upon this issue again, but this time with the fit function. The problem is still that committee.classes_ doesn't get initialized unless the committee is itself initialized with data of all classes. This time I didn't find the fix in the code, so I will send a pull request shortly.
Hello,
When trying to implement a cold-start query strategy for my AL application I encoutered a bug with the Committee class.
A minimum example to show this working for an ActiveLearner and not for a Committee is:
Gives output:
The problem is that when updating the training data in
BaseCommittee.teach()
,Committee._set_classes()
is run before the models have been trained, which results in a list of trained estimators, butCommittee.classes_
is stillNone
.I could fix this by moving
Committee._set_classes()
fromCommittee._add_training_data()
to a new functionCommittee.teach()
where it is run after the data has been added and the models trained. ~I will create a pull request soon, so you can look at this~.Edit: This fix has already been implemented