Skip to content

Commit 2005c7a

Browse files
added measure to prevent predictors with only one value from getting in the model
1 parent 4afc867 commit 2005c7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/APLRRegressor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ void APLRRegressor::initialize()
291291
if(term_has_one_unique_value)
292292
{
293293
copy_of_base_term.ineligible_boosting_steps=std::numeric_limits<size_t>::max();
294+
copy_of_base_term.split_point_search_errors_sum=std::numeric_limits<double>::infinity();
294295
}
295296
add_term_to_terms_eligible_current(copy_of_base_term);
296297
}

0 commit comments

Comments
 (0)