We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce459bd commit 1f39304Copy full SHA for 1f39304
cpp/APLRRegressor.h
@@ -287,11 +287,12 @@ void APLRRegressor::initialize()
287
for (size_t i = 0; i < static_cast<size_t>(X_train.cols()); ++i)
288
{
289
bool term_has_one_unique_value{check_if_base_term_has_only_one_unique_value(i)};
290
- if(!term_has_one_unique_value)
+ Term copy_of_base_term{Term(i)};
291
+ if(term_has_one_unique_value)
292
- Term copy_of_base_term{Term(i)};
293
- add_term_to_terms_eligible_current(copy_of_base_term);
+ copy_of_base_term.ineligible_boosting_steps=std::numeric_limits<size_t>::max();
294
}
295
+ add_term_to_terms_eligible_current(copy_of_base_term);
296
297
298
predictions_current=VectorXd::Constant(y_train.size(),0);
0 commit comments