Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ def _iterate_discrete_batch(self) -> ndarray:
max_positions = bounds[:, 1]
sigmas = max_positions * self.epsilon

# Prevent zero sigma for single-value dimensions
sigmas = maximum(sigmas, 1e-10)
# Prevent getting stuck: ensure noise standard deviation is at least 1.0 index
sigmas = maximum(sigmas, 1.0)

# Generate noise using the configured distribution
noise_fn = self._DISTRIBUTIONS[self.distribution]
Expand Down