private void buildForest ( Instance inst ) { this . dimensions = inst . numAttributes ( ) ; double [ ] max = new double [ dimensions ] ; double [ ] min = new double [ dimensions ] ; double sq ; for ( int i = 0 ; i < this . numTrees ; i ++ ) { for ( int j = 0 ; j < this . dimensions ; j ++ ) { sq = this . classifierRandom . nextDouble ( ) ; min [ j ] = sq - ( 2.0 * Math . max ( sq , 1.0 - sq ) ) ; max [ j ] = sq + ( 2.0 * Math . max ( sq , 1.0 - sq ) ) ; } forest [ i ] = new HSTreeNode ( min , max , 1 , maxDepth ) ; } }
Build the forest of Streaming Half - Space Trees