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

predict_function for time series forecasting #100

Open
simelise opened this issue Apr 19, 2024 · 0 comments
Open

predict_function for time series forecasting #100

simelise opened this issue Apr 19, 2024 · 0 comments

Comments

@simelise
Copy link

Hello,
I have seen that OmniXAI should work for time series forecasting. However, I'm a bit confused on what the output of the predict_function should be and I have not found any example in the documentation for forecasting. In the documentation I read this:
predict_function should be an Timeseries instance. The outputs of predict_function are anomaly scores (higher scores imply more anomalous) for anomaly detection or predicted values for forecasting.
( I was trying to adapt this example to do forecasting.)
When I create a ShapTimeseries with mode='forecasting' and call explain(test_x) on it, the predict_function receives as input a Timeseries instance that has 100 samples from the time series data, that each have the length of my test set. So is the expected output one prediction for each of the time series? And should that be the next time step after the time series? Or should I make the length of my test set equal to 1 and create a prediction for this time stamp? Or ignore the true values that are passed and create predictions for each of the time stamps in these time series?

Thank you in advance for your answer!

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

1 participant