Weka 分类器元投票 [英] Weka classifier meta Vote

查看:47
本文介绍了Weka 分类器元投票的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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 分类器元投票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆