-
Notifications
You must be signed in to change notification settings - Fork 45
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
Reduce sigdigits in parameter range display #948 #958
Reduce sigdigits in parameter range display #948 #958
Conversation
This commit addresses issue JuliaAI#948 by updating the display of parameter ranges to include reduced significant digits.
Thanks @adarshpalaskar1 for this contribution. Looks like you need to update a test. |
Sorry, I didn't run the tests locally before creating the pull request.
Log:
Should I update the test, or is the updated code incorrect? |
I think your changes are good. You just need to update the invalidated test. How about you improve the test by using lower and upper values with more that 4 sigdigits and verifying (with a variation on the existing test) that extra digits get truncated? |
Okay, I see. In the <:Integer case, we don't want to apply rounding at all. Sorry I missed that. So you need to add some logic. |
This commit addresses issue JuliaAI#948 by updating the display of parameter ranges to include reduced significant digits.
Okay, I have added a check before rounding off. I faced some errors while executing the tests locally so tried some test cases manually. Update: I was able to run the tests locally, and all of them passed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #958 +/- ##
==========================================
+ Coverage 87.66% 88.00% +0.33%
==========================================
Files 28 28
Lines 2433 2542 +109
==========================================
+ Hits 2133 2237 +104
- Misses 300 305 +5 ☔ View full report in Codecov by Sentry. |
Can we please add at test here:
For example, something for |
refactored type check Co-authored-by: Anthony Blaom, PhD <[email protected]>
Added test for one-dimensional range with Float64 values, rounded off to 4 significant digits.
Sure, I have added the test and executed it locally. (commit 02af6e0)
|
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.
Perfect.
Thanks @adarshpalaskar1 for your valuable contribution.
Thank you @ablaom for helping me through my beginner doubts; this was my first contribution. If there's anything specific I should keep in mind for future contributions, and if there are more issues where I can help, please point me in the right direction. |
Maybe you'd like to take a stab at JuliaAI/MLJDecisionTreeInterface.jl#23 ? |
You can find some decision tree examples at https://alan-turing-institute.github.io/MLJ.jl/dev/models/DecisionTreeClassifier_DecisionTree/#Examples . Once we have that, you'd be in good shape to improve integration with TreePlots.jl. |
Congratulations, by the way, on your first contribution 🎈 |
Thank you! I'll check out the decision tree examples and proceed. |
This commit addresses issue #948 by updating the display of parameter ranges to include reduced significant digits.