Skip to content

Conversation

@silviobe
Copy link

Add constraints for function to be positive or negative valued.

@codecov
Copy link

codecov bot commented Sep 11, 2020

Codecov Report

Merging #281 into master will increase coverage by 0.04%.
The diff coverage is 93.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #281      +/-   ##
==========================================
+ Coverage   95.21%   95.26%   +0.04%     
==========================================
  Files          22       22              
  Lines        3178     3252      +74     
==========================================
+ Hits         3026     3098      +72     
- Misses        152      154       +2     
Impacted Files Coverage Δ
pygam/penalties.py 91.95% <83.33%> (-1.38%) ⬇️
pygam/tests/test_penalties.py 100.00% <100.00%> (ø)
pygam/tests/test_terms.py 100.00% <0.00%> (ø)
pygam/pygam.py 94.80% <0.00%> (+<0.01%) ⬆️
pygam/tests/test_utils.py 96.55% <0.00%> (+0.04%) ⬆️
pygam/callbacks.py 95.23% <0.00%> (+0.07%) ⬆️
pygam/terms.py 94.60% <0.00%> (+0.19%) ⬆️
pygam/distributions.py 88.88% <0.00%> (+0.48%) ⬆️
pygam/tests/conftest.py 98.21% <0.00%> (+0.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b57b4cf...33e5d1f. Read the comment docs.

@dswah
Copy link
Owner

dswah commented Nov 18, 2025

Thanks for this contribution. Let's compare with #369

@dswah dswah changed the title add penalties/constraints for positive and negative functions [ENH] add penalties/constraints for positive and negative functions Dec 22, 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