Skip to content

Commit 90ed51e

Browse files
committed
rename clean up method in EdgeBank lookup backend
1 parent 2e9eda6 commit 90ed51e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tgm/nn/modules/edgebank.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __init__(self, fixed_memory: bool, pos_prob: float) -> None:
114114
'EdgeBank will be slow if events are added/updated out of order.'
115115
)
116116

117-
def _clean_up(self, window_start: float) -> None:
117+
def _evict_out_of_window_events(self, window_start: float) -> None:
118118
"""Clean up edges that are out of window in memory."""
119119
while self._head and self._head.ts < window_start:
120120
curr_event = self._head
@@ -137,7 +137,7 @@ def update(
137137
and self._tail is not None
138138
and self._head.ts < window_start
139139
):
140-
self._clean_up(window_start)
140+
self._evict_out_of_window_events(window_start)
141141

142142
for src_, dst_, ts_ in zip(src, dst, ts):
143143
src_, dst_, ts_ = src_.item(), dst_.item(), ts_.item()

0 commit comments

Comments
 (0)