1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-06 04:20:57 +08:00

fix horizon

This commit is contained in:
Dong Zhou
2021-07-22 18:52:48 +08:00
committed by you-n-g
parent a2c38c979e
commit 319a2f38cc

View File

@@ -319,7 +319,7 @@ class MTSDatasetH(DatasetH):
data.append(_maybe_padding(self._data[slc], self.seq_len, self._zeros))
if self.memory_mode == "sample":
state.append(_maybe_padding(self._memory[slc][: -self.horizon], self.seq_len, self._zeros))
state.append(_maybe_padding(self._memory[slc], self.seq_len, self._zeros)[: -self.horizon])
label.append(self._label[slc.stop - 1])
index.append(slc.stop - 1)