Skip to content

Commit 2986b2c

Browse files
committed
Update mlClassificationLogisticMultinomial.R
1 parent 404bc87 commit 2986b2c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

R/mlClassificationLogisticMultinomial.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ mlClassificationLogisticMultinomial <- function(jaspResults, dataset, options, .
128128
result[["explainer"]] <- DALEX::explain(result[["model"]], type = "classification", data = result[["train"]], y = result[["train"]][, options[["target"]]], predict_function = function(model, data) data.frame(1 - predict(model, newdata = data, type = "response"), predict(model, newdata = data, type = "response")))
129129
result[["explainer_fi"]] <- DALEX::explain(result[["model"]], type = "classification", data = result[["train"]], y = as.numeric(result[["train"]][, options[["target"]]]) - 1, predict_function = function(model, data) round(predict(model, newdata = data, type = "response"), 0) + 1)
130130
} else {
131-
# TODO
132131
result[["explainer"]] <- DALEX::explain(result[["model"]][["original"]], type = "multiclass", data = result[["train"]], y = result[["train"]][, options[["target"]]], predict_function = function(model, data) VGAM::predict(model, data, type = "response"))
133132
result[["explainer_fi"]] <- result[["explainer"]]
134133
}

0 commit comments

Comments
 (0)