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'm trying to use fastshap for the analysis of the prediction of an elastic neural network with 3 outputs.
The wrapper function is designed for one of the outputs and generating a numeric vector in the correct way.
However, following prediction the error message "object 'phis' not found" is reported.
The enviroment is: R4.1.1, Keras3, Tensorflow 2.17, module shap imported with reticulate::py_install("shap")
explainer_Y1 <- fastshap::explain(
loaded_model,
baseline = baseline,
X = x_train_reshaped_2d,
pred_wrapper = function(object, newdata) predict_wrapper(object, newdata, "Y1"),
nsim = 300,
adjust = TRUE
)
I modified adjust and baseline as well. Every possible combination fails.
The text was updated successfully, but these errors were encountered:
I'm trying to use fastshap for the analysis of the prediction of an elastic neural network with 3 outputs.
The wrapper function is designed for one of the outputs and generating a numeric vector in the correct way.
However, following prediction the error message "object 'phis' not found" is reported.
The enviroment is: R4.1.1, Keras3, Tensorflow 2.17, module shap imported with reticulate::py_install("shap")
explainer_Y1 <- fastshap::explain(
loaded_model,
baseline = baseline,
X = x_train_reshaped_2d,
pred_wrapper = function(object, newdata) predict_wrapper(object, newdata, "Y1"),
nsim = 300,
adjust = TRUE
)
I modified adjust and baseline as well. Every possible combination fails.
The text was updated successfully, but these errors were encountered: