-
Notifications
You must be signed in to change notification settings - Fork 1
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
create_summary_report fails on multiple populations if one of the populations always has specific outcome #69
Comments
Thank you @filbert42 ! In order to solve this problem I will render what is possible. If there are no real positives in the data (TP + FN) I can't calculate sensitivity TP / (TP + FN) and therefore I can't create ROC nor Precision Recall curves. The same is true for Lift Curve (the prevalence will be equal to 0). If there are no real negatives in the data (TN + FP) I can't calculate specificity TN /(TP + FN) and therefore I can't create ROC nor Gains curves. All the other cases might be weird but possible if I'm not mistaken. Sounds good? |
The following code should run properly now
|
Hi Uriah, thank you for this great package! :)
I'm trying to use Rtichoke to detect fairness problems in my models, so I'm using create_summary_report function with several populations that are actually subpopulations of my test data set.
However, apparently, if for some subpopulation my target outcome have a single type of 'real' value (for example, for some reason all men in the given dataset always have outcome == 1), create_summary_report throws this error:
<simpleError
in roc.default(response, predictor, auc = TRUE, ...): 'response' must have two levels>`Is it possible to render report regardless? This doesn't happen very often and it obviously a problem with my data, but it would be more convenient, I believe.
The text was updated successfully, but these errors were encountered: