-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🩹 Add number_of_clps to result and correct degrees_of_freedom calculation #1249
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 0.10%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.6.0 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Codecov ReportBase: 88.1% // Head: 88.3% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1249 +/- ##
=======================================
+ Coverage 88.1% 88.3% +0.2%
=======================================
Files 104 104
Lines 5064 5092 +28
Branches 842 847 +5
=======================================
+ Hits 4462 4499 +37
+ Misses 484 477 -7
+ Partials 118 116 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, from my side. The unit tests I requested have been added, thanks.
…of_residuals We reported the wrong value
👌🧪 Changed relation and constraints unit tests to use intervals
086a497
dd2be7d
to
086a497
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for this !
thanks a lot for this ! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This change adds
number_of_clps
to theMatrixProvider
's,OptimizationGroup
and theResult
classes.When degrees of freedom are calculated the
number_of_clps
are subtracted.In addition
number_of_data_points
was deprecated fromResult
since we found that what we actually report isnumber_of_residuals
which is the more interesting value anyway since it also contains the penalties.So following a discussion @ism200 we won't report the number of datapoints anymore.
Change summary
Checklist
Closes issues
closes #1086