modAL icon indicating copy to clipboard operation
modAL copied to clipboard

Creation of Query by Committee

Open hwimalar opened this issue 4 years ago • 1 comments

Hi, How do I ensure that the committee has a competing hypothesis? I was checking the models and all the models in the committee have the same hyper-parameters. Where does this concept of competing hypothesis come from? Also is it possible to create a committee with different algorithms like SVM, RF, and xgboost?

hwimalar avatar May 28 '20 00:05 hwimalar

Hi! To use the Committee, you have to provide a list of active learners explicitly, for example:

from modAL.models import Committee
from modAL.disagreement import vote_entropy_sampling

# a list of ActiveLearners:
learners = [learner_1, learner_2]

committee = Committee(
    learner_list=learners,
    query_strategy=vote_entropy_sampling
)

To get a competing hypothesis, you should train them accordingly, for instance using bootstrapping and bagging.

You can use it with different algorithms, as long as their implementation uses the scikit-learn API.

cosmic-cortex avatar May 28 '20 04:05 cosmic-cortex