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
After fitting my model, I am interested in looking at the SHAP values of a particular point of interest. I am having trouble understanding how the output from force_plot_from_ts relates to that point of interest in terms of the horizon parameter.
Assuming that I fitted my model under these conditions:
I then pass the appropriate timeseries to train the model and create the shap_explain_obj: shap_explain = ShapExplainer(model_estimator)
Now I am interested in looking at the SHAP values for a particular point in time, if I pass the exact length of past and future covariates required to the predict function, the model will perform as expected and predict the next 3 points.
For the get_explanation function, no matter what horizon parameter (1/2/3) I pass to it, I always only get back the timestamp for the first point of prediction, i.e. only 2024-01-01 00:45:00
e.g. horizon = 1
horizon = 2
Also for the force_plot_from_ts, how does the horizon parameter relate to the plot being shown? If horizon is 1, does it mean that is the SHAP values contributing to the first point of prediction 2024-01-01 00:45:00 and setting horizon 2 will be for the second point of prediction 2024-01-01 01:00:00?
Shouldn't both functions return the same results just visualized differently?
The text was updated successfully, but these errors were encountered:
After fitting my model, I am interested in looking at the SHAP values of a particular point of interest. I am having trouble understanding how the output from
force_plot_from_ts
relates to that point of interest in terms of thehorizon
parameter.Assuming that I fitted my model under these conditions:
I then pass the appropriate timeseries to train the model and create the shap_explain_obj:
shap_explain = ShapExplainer(model_estimator)
Now I am interested in looking at the SHAP values for a particular point in time, if I pass the exact length of past and future covariates required to the
predict
function, the model will perform as expected and predict the next 3 points.Now I pass the exact same dataset to
shap_explain.explain
andshap_explain.force_plot_from_ts
:For the get_explanation function, no matter what horizon parameter (1/2/3) I pass to it, I always only get back the timestamp for the first point of prediction, i.e. only
2024-01-01 00:45:00
e.g. horizon = 1
horizon = 2
Also for the force_plot_from_ts, how does the horizon parameter relate to the plot being shown? If horizon is 1, does it mean that is the SHAP values contributing to the first point of prediction
2024-01-01 00:45:00
and setting horizon 2 will be for the second point of prediction2024-01-01 01:00:00
?Shouldn't both functions return the same results just visualized differently?
The text was updated successfully, but these errors were encountered: