@ Override public void initialize ( Collection < Instance > trainingPoints ) { Iterator < Instance > trgPtsIterator = trainingPoints . iterator ( ) ; if ( trgPtsIterator . hasNext ( ) && this . reset ) { Instance inst = ( Instance ) trgPtsIterator . next ( ) ; this . numAttributes = inst . numAttributes ( ) - 1 ; this . initializeNetwork ( ) ; } while ( trgPtsIterator . hasNext ( ) ) { this . trainOnInstance ( ( Instance ) trgPtsIterator . next ( ) ) ; } }
Initializes the Autoencoder classifier on the argument trainingPoints .