fzi-forschungszentrum-informatik / TSInterpret

An Open-Source Library for the interpretability of time series classifiers
BSD 3-Clause "New" or "Revised" License
115 stars 8 forks source link

SETS method: mode = ‘feat' #67

Open LbzSteven opened 4 months ago

LbzSteven commented 4 months ago

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.