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 f924daa commit 04a316fCopy full SHA for 04a316f
cpp/APLRRegressor.h
@@ -450,7 +450,8 @@ VectorXd APLRRegressor::differentiate_predictions()
450
return 1.0/4.0 * (linear_predictor_current.array()/2.0).cosh().array().pow(-2);
451
else if(link_function=="log")
452
{
453
- return (linear_predictor_current.array()-linear_predictor_current.maxCoeff()).array().exp();
+ double scaling{linear_predictor_current.maxCoeff()};
454
+ return (linear_predictor_current.array()-scaling).array().exp();
455
}
456
else if(link_function=="tweedie")
457
0 commit comments