Hello Nixtla team! I have a question regarding the...
# mlforecast
a
Hello Nixtla team! I have a question regarding the use of SHAP in mlforecast. I'm implementing the example SHAP code in the documentation found here. However, I get an error at the line 'shap_values = explainer(X)' saying "
Copy code
TypeError: 'DataFrame' object cannot be interpreted as an integer
Has anyone faced a similar issue?
j
Hey. Are you doing exactly the same as the guide? Seems like you may be using the MLForecast object instead of the model, as in this issue
👍 1
a
Thank you, José! You're absolutely right. I should have passed fsct.models_['modelname']. Instead, I passed fsct. I didn't think I would need to specify the model name since there was only one estimator in the mlforecast object. It's works now. Thanks again!