Skip to content

Commit 2346fe1

Browse files
committed
Make sure shap table works
1 parent f3af3a0 commit 2346fe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/commonMachineLearningRegression.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@
786786
} else {
787787
explainer <- model[["explainer"]]
788788
x_test <- dataset[, predictors]
789-
predictions <- .mlPredictionsState(model, dataset, options, jaspResults, ready)[options[["fromIndex"]]:options[["toIndex"]]]
789+
predictions <- .mlPredictionsState(model, dataset, options, jaspResults, ready)[[1]][options[["fromIndex"]]:options[["toIndex"]]]
790790
}
791791
from <- min(c(options[["fromIndex"]], options[["toIndex"]] - 1, nrow(x_test)))
792792
to <- min(c(options[["toIndex"]], nrow(x_test)))

0 commit comments

Comments
 (0)