Skip to content

Commit db1f7ef

Browse files
bugfix
1 parent d397f0c commit db1f7ef

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

cpp/APLRRegressor.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,10 +1239,18 @@ void APLRRegressor::execute_boosting_step(size_t boosting_step, Eigen::Index fol
12391239
update_coefficient_steps(boosting_step);
12401240
if (!model_has_changed_in_this_boosting_step)
12411241
{
1242-
abort_boosting = true;
1243-
if (verbosity >= 1)
1242+
if (linear_effects_only_in_this_boosting_step || non_linear_effects_allowed_in_this_boosting_step)
1243+
{
1244+
find_optimal_m_and_update_model_accordingly();
1245+
stopped_early = true;
1246+
}
1247+
else
12441248
{
1245-
std::cout << "No further reduction in training loss was possible. Terminating the boosting procedure.\n";
1249+
abort_boosting = true;
1250+
if (verbosity >= 1)
1251+
{
1252+
std::cout << "No further reduction in training loss was possible. Terminating the boosting procedure.\n";
1253+
}
12461254
}
12471255
}
12481256
abort_boosting_when_no_validation_error_improvement_in_the_last_early_stopping_rounds(boosting_step);
Binary file not shown.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
setuptools.setup(
2929
name="aplr",
30-
version="10.7.3",
30+
version="10.7.4",
3131
description="Automatic Piecewise Linear Regression",
3232
ext_modules=[sfc_module],
3333
author="Mathias von Ottenbreit",

0 commit comments

Comments
 (0)