-
Notifications
You must be signed in to change notification settings - Fork 93
Categorical plugin accepts deterministic conditions #1965
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
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1965 +/- ##
==========================================
- Coverage 98.40% 98.39% -0.01%
==========================================
Files 124 124
Lines 12028 12055 +27
==========================================
+ Hits 11836 11862 +26
- Misses 192 193 +1 ☔ View full report in Codecov by Sentry. |
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.
I think this does what we need, but I have some suggestions to improve the code.
improver_tests/categorical/decision_tree/test_ApplyDecisionTree.py
Outdated
Show resolved
Hide resolved
I think I should have reassigned this to Marcus last week. |
2e4dda5
to
feb4d66
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.
A couple of things to change, and one to consider.
doc/source/extended_documentation/categorical/build_a_decision_tree.rst
Outdated
Show resolved
Hide resolved
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 @mspelman07. This looks fine - tests show that behaviour is unchanged for existing, probabilistic decision trees, and the new functionality for deterministic decision trees appears to work as intended.
* Make check decision tree work with deterministic nodes * Adds in tests and changes to make ApplyDecisionTree work with deterministic inputs * Formatting * Update documentation to include deterministic nodes * Review response and add test for missing input for deterministic forecasts * Update handling of strings and review response * formatting --------- Co-authored-by: Marcus Spelman <marcus.spelman@metoffice.gov.uk>
This PR makes some further changes to the wx symbols plugin so it can work with a decision tree using deterministic inputs. This PR builds on PR #1944 which refactored the code to work with any decision tree. This branch points at master but can't be merged before the previous PR.
I have attempted to write this code so that it doesn't require any changes to the current weather symbols decision tree. This is partially to limit the number of changes that need to be made but also so I can show that the changes I've made don't effect the existing decision tree.
Testing: