@ Override public void setOutcome ( int example , int label ) { if ( example > numExamples ( ) ) throw new IllegalArgumentException ( "No example at " + example ) ; if ( label > numOutcomes ( ) || label < 0 ) throw new IllegalArgumentException ( "Illegal label" ) ; INDArray outcome = FeatureUtil . toOutcomeVector ( label , numOutcomes ( ) ) ; getLabels ( ) . putRow ( example , outcome ) ; }
Sets the outcome of a particular example