protected ArrayList < Integer > getMAXIndexes ( ) { ArrayList < Integer > maxWIndex = new ArrayList < Integer > ( ) ; Pair [ ] newEnsembleWeights = new Pair [ getNbActiveClassifiers ( ) ] ; System . arraycopy ( ensembleWeights , 0 , newEnsembleWeights , 0 , newEnsembleWeights . length ) ; Arrays . sort ( newEnsembleWeights ) ; double maxWVal = newEnsembleWeights [ newEnsembleWeights . length - 1 ] . val ; for ( int i = newEnsembleWeights . length - 1 ; i >= 0 ; i -- ) { if ( newEnsembleWeights [ i ] . val != maxWVal ) break ; else maxWIndex . add ( newEnsembleWeights [ i ] . index ) ; } return maxWIndex ; }
Returns the classifiers that vote for the final prediction when the MAX combination function is selected