Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing object 'phis' #79

Open
T7963 opened this issue Sep 16, 2024 · 1 comment
Open

Missing object 'phis' #79

T7963 opened this issue Sep 16, 2024 · 1 comment

Comments

@T7963
Copy link

T7963 commented Sep 16, 2024

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.

@bgreenwell
Copy link
Owner

Sorry for the delay @T7963, I will try to take a look. Do you have a reprex I can run on my end?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants