New loss function and an optional mean bias correction
·
6 commits
to main
since this release
✨ New Features
-
Huber Loss Function: A new
huberloss function has been added toAPLRRegressor. This provides a robust alternative to Mean Squared Error (MSE) that is less sensitive to outliers while remaining differentiable everywhere, improving model stability on noisy datasets. Thedeltaparameter for this loss function is controlled viadispersion_parameter. -
Explicit Mean Bias Correction:
- A new
mean_bias_correctionconstructor parameter (defaultFalse) has been introduced to apply an explicit post-processing step to the model's intercept. - When enabled, this feature adjusts the intercept to make the model's predictions on the training data have the same (weighted) mean as the response variable. This can be particularly useful for loss functions like
huber, which can otherwise produce biased predictions. - The correction is currently implemented for models using the
identityandloglink functions.
- A new
📚 Documentation
- The API reference for
APLRRegressorhas been updated to describe the above.