-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add warning if observed in DensityDist is dict #6292
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 warning if observed in DensityDist is dict #6292
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6292 +/- ##
==========================================
+ Coverage 94.12% 94.17% +0.05%
==========================================
Files 111 111
Lines 23861 23921 +60
==========================================
+ Hits 22458 22528 +70
+ Misses 1403 1393 -10
|
LGTM. Thanks for contributing! |
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.
just some code style simplifications/FYI
looks good!
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.
This is a great start but misses the most important point of the original issue.
DensityDist is defined differently than how it was in V3 where a dictionary with the other parameters besides data could be used. The error message should address this change in API more than what types of observed data are allowed (that's not what users find confusing).
Co-authored-by: Michael Osthege <[email protected]>
Co-authored-by: Michael Osthege <[email protected]>
Based on this item in the Release notes:
I am suggesting this new error message: Since Let me know if this message can be further improved. |
@symeneses that sounds good |
What is this PR about?
It adds a warning if the observed parameter is a dictionary.
Checklist
Major / Breaking Changes
Bugfixes / New features
It solves Raise informative error if dictionary is passed as observed of DensityDist #6032
Docs / Maintenance