Skip to content

Commit c32dfe0

Browse files
committed
cleanup
1 parent 88bd808 commit c32dfe0

3 files changed

Lines changed: 0 additions & 405 deletions

File tree

amago/envs/builtin/wind.py

Lines changed: 0 additions & 224 deletions
This file was deleted.

amago/loading.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,6 @@ def random_slice(self, length: int, padded_sampling: str = "none"):
105105
elif padded_sampling == "right":
106106
start = self._safe_randrange(0, len(self) - 1)
107107
elif padded_sampling == "center":
108-
# Uniform center over [0, T), window clamped to fit inside [0, T].
109-
# Always length `length`, never padded. Compared to "none", which
110-
# severely undersamples the first/last (length - 1) timesteps,
111-
# this mode gives them ~length/T marginal coverage instead of
112-
# ~1/(T-length+1). Trade-off: interior timesteps still get more
113-
# coverage than endpoints when T < 2*length - 1, but the
114-
# imbalance is dramatically smaller than "none".
115108
center = self._safe_randrange(0, len(self))
116109
start = min(max(center - length // 2, 0), len(self) - length)
117110
else:

0 commit comments

Comments
 (0)