File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -544,12 +544,12 @@ void Term::estimate_split_point_on_discretized_data()
544544
545545 double split_point_left{NAN_DOUBLE};
546546 double error_min_left{error_split_point_nan};
547- for (auto & bin : bins_split_points_left)
547+ for (auto bin = bins_split_points_left. rbegin (); bin != bins_split_points_left. rend (); ++bin )
548548 {
549- split_point = bin;
549+ split_point = * bin;
550550 direction_right = false ;
551551 estimate_coefficient_and_error (calculate_without_interactions (values_discretized), negative_gradient_discretized, sample_weight_discretized);
552- if (std::islessequal (split_point_search_errors_sum, error_min_left))
552+ if (std::isless (split_point_search_errors_sum, error_min_left))
553553 {
554554 error_min_left = split_point_search_errors_sum;
555555 split_point_left = split_point;
@@ -563,7 +563,7 @@ void Term::estimate_split_point_on_discretized_data()
563563 split_point = bin;
564564 direction_right = true ;
565565 estimate_coefficient_and_error (calculate_without_interactions (values_discretized), negative_gradient_discretized, sample_weight_discretized);
566- if (std::islessequal (split_point_search_errors_sum, error_min_right))
566+ if (std::isless (split_point_search_errors_sum, error_min_right))
567567 {
568568 error_min_right = split_point_search_errors_sum;
569569 split_point_right = split_point;
Original file line number Diff line number Diff line change 2121
2222setuptools .setup (
2323 name = "aplr" ,
24- version = "9.2.1 " ,
24+ version = "9.2.2 " ,
2525 description = "Automatic Piecewise Linear Regression" ,
2626 ext_modules = [sfc_module ],
2727 author = "Mathias von Ottenbreit" ,
You can’t perform that action at this time.
0 commit comments