Skip to content

Conversation

@FloeFoxon
Copy link

Update penalties.py to fix issue #368 by adding the functionality to constrain splines as positive only, as described in my comment on issue #368.

Update penalties.py to fix issue dswah#368 by adding the functionality to constrain splines as positive only.
@dswah dswah closed this Nov 17, 2025
@dswah dswah reopened this Nov 17, 2025
@dswah
Copy link
Owner

dswah commented Nov 17, 2025

Closing and re-opening the PR to trigger the CI workflows again.

@dswah
Copy link
Owner

dswah commented Nov 18, 2025

@FloeFoxon Thanks for this clean and complete contribution!
I am concerned, however, that positive spline coefficients might pose a problem regarding model identifiability.

I believe that enforcing positivity in the coefficients will just force the negative part to be absorbed into the model intercept...

@dswah dswah changed the title Update penalties.py to fix issue #368 [ENH] Update penalties.py to fix issue #368 Positive Constraint Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants