File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -427,16 +427,16 @@ void RandomPlantedForest::purify_2()
427
427
int dim_idx = 0 ;
428
428
for (int dim = 1 ; dim <= feature_size; ++dim) {
429
429
const int gp = grid_point[dim_idx];
430
- if (gp >= lim_list[dim-1 ].size ()-1 ){
431
- not_end_leaf = false ;
432
- break ;
433
- }
434
430
435
431
double lower, upper;
436
432
if (tree_dims.count (dim) == 0 ) {
437
433
lower = lower_bounds[dim-1 ];
438
434
upper = upper_bounds[dim-1 ];
439
435
} else {
436
+ if (gp >= lim_list[dim-1 ].size ()-1 ){
437
+ not_end_leaf = false ;
438
+ break ;
439
+ }
440
440
lower = lim_list[dim-1 ][gp];
441
441
upper = lim_list[dim-1 ][gp + 1 ];
442
442
++dim_idx;
@@ -453,5 +453,5 @@ void RandomPlantedForest::purify_2()
453
453
}
454
454
}
455
455
456
- purified = true ; // debug
456
+ purified = false ; // debug
457
457
}
You can’t perform that action at this time.
0 commit comments