### Question:
UniformWeightedVoteMultiLabel extends AbstractErrorWeightedVoteMultiLabel { @Override public Prediction computeWeightedVote() { int n=votes.size(); if (n>0){ int numOutputs=outputAttributesCount.length; weights=new double[n][numOutputs]; weightedVote=new MultiLabelPrediction(numOutputs); for (int o=0;o<numOutputs;o++) { for (int i=0; i<n; i++) { int numClasses=votes.get(i).numClasses(o); if(votes.get(i).hasVotesForAttribute(o)) weights[i][o]=1.0/outputAttributesCount[o]; for(int j=0; j<numClasses; j++){ weightedVote.setVote(o, j, weightedVote.getVote(o, j)+votes.get(i).getVote(o, j)*weights[i][o]); } } } } return weightedVote; }  @Override Prediction computeWeightedVote();  }### Answer:
@Test public void testComputeWeightedVote() { Prediction weightedPred=weightedVote.computeWeightedVote(); assertEquals(2,weightedPred.getVote(0, 0), EPS); assertEquals(2,weightedPred.getVote(1, 0), EPS); assertEquals(3,weightedPred.getVote(2, 0), EPS); assertEquals(3,weightedPred.getVote(3, 0), EPS); }