Skip to content

fix: migrate ReplayBuffer to np.random.Generator and DEBUG logging - #48

Merged
belarusian merged 1 commit into
mainfrom
build15/replaybuffer-fixes
Aug 14, 2026
Merged

fix: migrate ReplayBuffer to np.random.Generator and DEBUG logging#48
belarusian merged 1 commit into
mainfrom
build15/replaybuffer-fixes

Conversation

@belarusian

Copy link
Copy Markdown
Owner

Changes

  • Add rng: np.random.Generator | None = None to ReplayBuffer.init
  • Replace np.random.choice() with self.rng.choice() in sample()
  • Add DEBUG-level logging in add() when buffer is full
  • Add 15 tests for rng parameter and logging behavior

Verification

  • 461 tests pass
  • ruff clean
  • mypy clean

- Add rng: np.random.Generator | None = None to ReplayBuffer.__init__
- Replace np.random.choice() with self.rng.choice() in sample()
- Add DEBUG-level logging in add() when buffer is full
- Add 15 tests for rng parameter and logging behavior
- All 461 tests pass, ruff clean, mypy clean
@belarusian
belarusian merged commit 0c825f5 into main Aug 14, 2026
1 check passed
@belarusian
belarusian deleted the build15/replaybuffer-fixes branch August 14, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant