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

DiCE on time-series data #148

Open
Labaien96 opened this issue May 14, 2021 · 4 comments
Open

DiCE on time-series data #148

Labaien96 opened this issue May 14, 2021 · 4 comments

Comments

@Labaien96
Copy link

Hi, I was wondering if DiCE works with continuous variables such as time-series data or not.

@gaugup
Copy link
Collaborator

gaugup commented May 15, 2021

I don't think DiCE library supports counterfactual generation for time series data as yet. CF for continuous variables is supported but not sure how do you capture the notion of time in your ML model.

@amit-sharma could shed more light on support for time series.

@amit-sharma
Copy link
Collaborator

@Labaien96 DiCE works for continuous features. So it will interpret the timeseries also as a (unordered) set of continuous features.
There are ways to preprocess the data to make it work, but for that it is important to know the specific type of model you'd like to explain. Can you share some details on that? Does the model predict the next value of a timeseries?

@Saladino93
Copy link

@amit-sharma do you have an example for this? I would be very interested!

@gadhvirushiraj
Copy link

@amit-sharma

I am also looking for making DiCE work on time-series. And it would be great if you can explain the data processing part you mentioned above.

In my scenario,I have a Bidirectional LSTM to predict values in a time series (specifically, yoga postures). I classify user actions incorrect based on a threshold (deviation between predicted and actual).

graph

I wish to generate counterfactual explanations for each error point, suggesting corrective actions for improvement. Because correcting individual features directly isn't ideal due to potential dependencies between features, which vary based on the user's posture. So, generating counterfactuals made sense but not sure on how to go about it using DiCE.

Thanks

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

No branches or pull requests

5 participants