You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get an n.trees error even when passing the n.trees argument to variable_response() with an explainer created on a gbm model object.
library(gbm)
library(DALEX)
library(breakDown)
# create a gbm model
model <- gbm(quality ~ pH + residual.sugar + sulphates + alcohol, data = wine,
distribution = "gaussian",
n.trees = 1000,
interaction.depth = 4,
shrinkage = 0.01,
n.minobsinnode = 10,
verbose = FALSE)
# make an explainer for the model
explainer_gbm <- explain(model, data = wine)
# single variable
exp_sgn <- variable_response(explainer_gbm, variable = "alcohol", n.trees = 1000)
Error in paste("Using", n.trees, "trees...\n") :
argument "n.trees" is missing, with no default](url)
The text was updated successfully, but these errors were encountered:
This issue is related to a previous one: #4
I get an n.trees error even when passing the n.trees argument to variable_response() with an explainer created on a gbm model object.
The text was updated successfully, but these errors were encountered: