@ Override public void initialize ( Collection < Instance > trainingPoints ) { Iterator < Instance > trgPtsIterator = trainingPoints . iterator ( ) ; if ( trgPtsIterator . hasNext ( ) && this . numInstances == 0 ) { Instance inst = trgPtsIterator . next ( ) ; this . buildForest ( inst ) ; this . trainOnInstance ( inst ) ; } while ( trgPtsIterator . hasNext ( ) ) { this . trainOnInstance ( ( Instance ) trgPtsIterator . next ( ) ) ; } }
Initializes the Streaming HS - Trees classifier on the argument trainingPoints .