Skip to content

Commit 4afc867

Browse files
prefer constant if it equals loss of proposed term
1 parent 1f39304 commit 4afc867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/APLRRegressor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ void APLRRegressor::consider_updating_intercept()
574574
void APLRRegressor::select_the_best_term_and_update_errors(size_t boosting_step)
575575
{
576576
//If intercept does best
577-
if(std::isless(error_after_updating_intercept,lowest_error_sum))
577+
if(std::islessequal(error_after_updating_intercept,lowest_error_sum))
578578
{
579579
//Updating intercept, current predictions, gradient and errors
580580
lowest_error_sum=error_after_updating_intercept;

0 commit comments

Comments
 (0)