Skip to content

Commit

Permalink
[#542] candidate fix for #542
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiecek committed Jan 15, 2023
1 parent 7b203c0 commit 478a19d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ DALEX 2.4.3
---------------------------------------------------------------
* added implementation of aSHAP (aggregated SHAP) and waterfall plot ([#519](https:/ModelOriented/DALEX/issues/519))
* adding a new system for default color schemes ([#541](https:/ModelOriented/DALEX/issues/541))
* added `cross_entropy` as model performance measure to multilabel settings [#542](https:/ModelOriented/DALEX/issues/542)

DALEX 2.4.2
---------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion R/model_performance.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ model_performance <- function(explainer, ..., cutoff = 0.5) {
macro_F1 = model_performance_macro_f1(predicted, observed),
w_macro_F1 = model_performance_weighted_macro_f1(predicted, observed),
accuracy = model_performance_accuracy_multi(predicted, observed),
w_macro_auc = model_performance_weighted_macro_auc(predicted, observed)
w_macro_auc = model_performance_weighted_macro_auc(predicted, observed),
cross_entropy = loss_cross_entropy(predicted = predicted, observed = observed)
)
} else {
stop("`explainer$model_info$type` should be one of ['regression', 'classification', 'multiclass'] - pass `model_info = list(type = $type$)` to the `explain` function. Submit an issue on https:/ModelOriented/DALEX/issues if you think that this model should be covered by default.")
Expand Down

0 comments on commit 478a19d

Please sign in to comment.