Skip to content

Commit

Permalink
Update hyperit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoardoChidichimo committed Jun 21, 2024
1 parent 9768eb2 commit 660bf1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyperit/hyperit.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ def symb_calc_mi(X: np.ndarray, Y: np.ndarray, k: int, delay: int) -> float:
def __delay_timeseries(self, lag: int) -> None:
""" Only for Kernel TE which currently has no built-in delay function. Manually delay data2 by specified lag"""

newY = np.array(self._data1[..., lag:])
newX = np.array(self._data2[..., :-lag])
newY = np.array(self._data2[..., :-lag])
newX = np.array(self._data1[..., lag:])

self._data1 = newX
self._data2 = newY
Expand Down

0 comments on commit 660bf1b

Please sign in to comment.