protected void enforceMemoryLimit() {
		double memoryLimit = this.maxByteSizeOption.getValue() / (double) (this.ensemble.length + 1);

		for (int i = 0; i < this.ensemble.length; i++) {
			((HoeffdingTree) this.ensemble[(int) this.weights[i][1]].classifier).maxByteSizeOption.setValue((int) Math
					.round(memoryLimit));
			((HoeffdingTree) this.ensemble[(int) this.weights[i][1]].classifier).enforceTrackerLimit();
		}
	}
protected void enforceMemoryLimit ( ) { double memoryLimit = this . maxByteSizeOption . getValue ( ) / ( double ) ( this . ensemble . length + 1 ) ; for ( int i = 0 ; i < this . ensemble . length ; i ++ ) { ( ( HoeffdingTree ) this . ensemble [ ( int ) this . weights [ i ] [ 1 ] ] . classifier ) . maxByteSizeOption . setValue ( ( int ) Math . round ( memoryLimit ) ) ; ( ( HoeffdingTree ) this . ensemble [ ( int ) this . weights [ i ] [ 1 ] ] . classifier ) . enforceTrackerLimit ( ) ; } }
Checks if the memory limit is exceeded and if so prunes the classifiers in the ensemble.