问题描述
我在weka中使用多数投票组合规则.总共有4个分类器.我想知道如果票数出现平局会发生什么
I am using Majority voting combination rule in weka. There are 4 classifiers in total. I am wondering what will happen if there is a tie in the number of votes
推荐答案
Weka API :..... 用于打破多数投票关系的随机数生成器..".见:http://fiji.sc/javadoc/weka/classifiers/meta/Vote.html
Weka API : ".....the random number generator used for breaking ties in majority voting..".See :http://fiji.sc/javadoc/weka/classifiers/meta/Vote.html
如果您对代码感兴趣,这就是他们的做法:
If you are interested in code , this is how they do it:
//根据均匀随机分布解析关系
// Resolve the ties according to a uniform random distribution
int 多数索引 = 多数索引.get(m_Random.nextInt(majorityIndexes.size()));
int majorityIndex = majorityIndexes.get(m_Random .nextInt(majorityIndexes.size()));
这篇关于Weka 分类器元投票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!