Algorithm 1. Weighted voting scheme. |
Input: |
: Classifier |
: Labels of Data Set |
m: Ensemble Size |
n: the Number of Labels |
Output: |
the predicted class from a single classifier |
the predicted class y* |
for i = 1: m |
for j = 1: n |
compute , the probability assigned by to class |
= |
= |
for j = 1: n |
= { i = 1,…,m: == } |
if == |
= 0 |
else |
for i in do |
= |
= , |
= |
y* = |
return y* |