machine-learning - 如何使用遗传算法在WEKA中找到投票分类器的权重?

标签 machine-learning artificial-intelligence weka genetic-algorithm voting

我的工作地点是 this article :“一种使用集成学习预测肾结石类型的新方法”。作者使用遗传算法来寻找 WEKA 投票的最佳权重向量,但我不知道他们能做到这一点。如何使用遗传算法通过 WEKA 找到投票分类器的权重?

以下段落摘自文章:

In order to enhance the performance of the voting algorithm,a weighted majority vote is used. Simple majority vote algorithm is usually an effective way to combine different classifiers, but not all classifiers have the same effect on the classification problem. To optimize the results from weight majority vote classifier, we need to find the optimal weight vector. Applying Genetic algorithms is our solution for finding the optimal weight vector in this problem.

最佳答案

假设您有一些经过训练的分类器和测试集,您可以创建一个方法calculateFitness(double[] Weights)。在此方法中,每个实例根据权重计算所有预测和合并预测。使用组合预测和实际值来计算您想要最大化/最小化的总分。

使用calculateFitness方法,您可以创建自定义GA来查找最佳权重。

关于machine-learning - 如何使用遗传算法在WEKA中找到投票分类器的权重?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54135332/

相关文章:

algorithm - Q 学习的收敛标准

java - 无法在 MATLAB 中实例化 Weka 类

r - 如何使用 MXNet 框架在卷积神经网络中制作平滑的内核?

python - ValueError : Found input variables with inconsistent numbers of samples: [75, 1] 在 Python 中意味着什么?

javascript - 拟合时的 TensorflowJS,损失为 NaN

python - 用空格分隔值到 ndarray

pattern-matching - AIML中如何匹配两个关键字?

image-processing - 识别数据模式的最佳方法是什么,以及了解有关该主题的更多信息的最佳方法是什么?

java - weka,命令行,设置路径,java

java - 从Evaluation.predictions() Weka-api java中保存在快速 vector 中的结果的含义是什么