fzi-forschungszentrum-informatik / TSInterpret

An Open-Source Library for the interpretability of time series classifiers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SETS method: mode = ‘feat'

LbzSteven opened this issue · comments

Describe the bug
For the code of SETS counterfactual, when mode = 'feat', self.train_x will not be defined, also, it appears that when mode == "time", the self.ts_len here should be train_x.shape[-1] since you swap the channel first.
if mode == "time":
# Parse test data into (1, feat, time):
change = True
self.train_x = np.swapaxes(train_x, 2, 1)
self.ts_len = train_x.shape[1]

To Reproduce
Steps to reproduce the behavior. Also State the OS and the versions you are using.

Additional context
Add any other context about the problem here.