public void fit ( INDArray x ) { this . data = x ; for ( int i = 0 ; i < numTrees ; i ++ ) { RPTree tree = new RPTree ( data . columns ( ) , maxSize , similarityFunction ) ; tree . buildTree ( x ) ; trees . add ( tree ) ; } }
Build the trees from the given dataset