modAL icon indicating copy to clipboard operation
modAL copied to clipboard

How to use the committee's vote entropy and consensus entripy

Open wxl112 opened this issue 5 years ago • 2 comments

hey,I'm here to thank you what a great modAL you offered to us,but I'd like to use the vote entropy and consensus entropy to improve the prediction.Since I'm a rookie not so good at writing code.so could you please offer me an example to me to learn how it worked.I'm very appreciate!

wxl112 avatar Mar 15 '20 09:03 wxl112

Hi!

Take a look at this example: https://github.com/modAL-python/modAL/blob/dev/docs/source/content/examples/query_by_committee.ipynb

The default sampling strategy for Committee is vote entropy. To change this to consensus entropy, all you need to do is that in [4], you add

from modAL.disagreement import consensus_entropy_sampling

and replace the Committee initialization with this:

committee = Committee(learner_list=learner_list, query_strategy=consensus_entropy_sampling)

cosmic-cortex avatar Mar 23 '20 13:03 cosmic-cortex

yeah,thanks a lot bro.I am so honored you replayed me.and that help me a lot.god bless you.stay safe!

------------------ 原始邮件 ------------------ 发件人: "Tivadar Danka"; 发送时间: 2020年3月23日(星期一) 晚上9:32 收件人: "modAL-python/modAL"; 抄送: "Lucas.hood"[email protected];"Author"; 主题: Re: [modAL-python/modAL] How to use the committee's vote entropy and consensus entripy (#76)

Hi!

Take a look at this example: https://github.com/modAL-python/modAL/blob/dev/docs/source/content/examples/query_by_committee.ipynb

The default sampling strategy for Committee is vote entropy. To change this to consensus entropy, all you need to do is that in [4], you add from modAL.disagreement import consensus_entropy_sampling
and replace the Committee initialization with this: committee = Committee(learner_list=learner_list, query_strategy=consensus_entropy_sampling)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wxl112 avatar Mar 23 '20 13:03 wxl112