public void overrideMinorityDefault ( int index ) { if ( targetMinorityDistMap . containsKey ( index ) ) { minorityLabelMap . put ( index , 0 ) ; } else { throw new IllegalArgumentException ( "Index specified is not contained in the target minority distribution map specified with the preprocessor. Map contains " + ArrayUtils . toString ( targetMinorityDistMap . keySet ( ) . toArray ( ) ) ) ; } }
Will change the default minority label from 1 to 0 and correspondingly the majority class from 0 to 1 for the label at the index specified