We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a89dd5 commit cfe6743Copy full SHA for cfe6743
src/lib/rpf_purify_anova.cpp
@@ -427,16 +427,16 @@ void RandomPlantedForest::purify_2()
427
int dim_idx = 0;
428
for (int dim = 1; dim <= feature_size; ++dim) {
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
435
double lower, upper;
436
if (tree_dims.count(dim) == 0) {
437
lower = lower_bounds[dim-1];
438
upper = upper_bounds[dim-1];
439
} else {
+ if (gp >= lim_list[dim-1].size()-1){
+ not_end_leaf = false;
+ break;
+ }
440
lower = lim_list[dim-1][gp];
441
upper = lim_list[dim-1][gp + 1];
442
++dim_idx;
@@ -453,5 +453,5 @@ void RandomPlantedForest::purify_2()
453
}
454
455
456
- purified = true; // debug
+ purified = false; // debug
457
0 commit comments