-
Notifications
You must be signed in to change notification settings - Fork 91
Add check_distribution function #4184
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 Report
@@ Coverage Diff @@
## main #4184 +/- ##
=======================================
+ Coverage 99.7% 99.7% +0.1%
=======================================
Files 349 349
Lines 38128 38154 +26
=======================================
+ Hits 38011 38037 +26
Misses 117 117
|
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 once we add the baseline case for coverage
def test_check_distribution(problem_type, expected_distribution): | ||
y_true = pd.Series(np.random.normal(size=500)) | ||
if expected_distribution == "matching": | ||
y_pred = pd.Series(np.random.normal(size=500)) |
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.
would we want to test non-normal distributions?
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.
Looks great! Well done.
Closes #4170