-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
loss_accuracy
returns 0 for mean_dropout_loss
#535
Comments
Hi, I think Lines 47 to 51 in b855207
I think that Lines 94 to 97 in b855207
Lines 166 to 168 in b855207
and also it probably should be a decreasing measure 1 - Accuracy as with 1 - AUC .
|
Thanks! So putting that all together, something like this?
|
@JeffreyRStevens yes, would you like to make a PR? |
I would be happy to. Would you like me to do anything with |
perhaps also remove |
@hbaniecki what's wrong with |
currently suggested approach:
|
maybe add |
TODO model_parts(explainer, loss_function = get_loss_yardstick(reverse=TRUE))
model_parts(explainer, loss_function = get_loss_accuracy(cutoff=0.5)) # returns DALEX::loss_one_minus_acc
model_parts(explainer, loss_function = DALEX::loss_one_minus_acc) # baseline cutoff=0.5 |
I would like to use
loss_accuracy
as my loss function inmodel_parts()
, but whenever I use it, themean_drop_loss
is always 0. I have triedloss_accuracy
for regression, classification, and multiclass classification (see reprex below). Am I using it correctly?Created on 2022-12-29 with reprex v2.0.2
When I try other loss functions (e.g.,
loss_root_mean_square
for regression,loss_one_minus_auc
for classification), they return non-zero values.Created on 2022-12-29 with reprex v2.0.2
Is there something different about how
loss_accuracy
is used?I'm using DALEX v2.4.2, R v4.2.2, RStudio v2022.12.0+353, Ubuntu 22.04.1
The text was updated successfully, but these errors were encountered: