@ Override public DataSet next ( ) { if ( ! iter . hasNext ( ) && passes < numPasses ) { passes ++ ; batch = 0 ; log . info ( "Epoch " + passes + " batch " + batch ) ; iter . reset ( ) ; } batch ++ ; DataSet next = iter . next ( ) ; if ( preProcessor != null ) preProcessor . preProcess ( next ) ; return next ; }
Returns the next element in the iteration .