Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NStepBatchSampler #56

Merged
merged 6 commits into from
Sep 14, 2023
Merged

NStepBatchSampler #56

merged 6 commits into from
Sep 14, 2023

Conversation

HenriDeh
Copy link
Member

This PR reworks NStepBatchSampler. It now exploits the episode information of EpisodesBuffer.
This was an attempt to solve the issue discussed in JuliaReinforcementLearning/ReinforcementLearning.jl#966.

It turns out that the issue was not caused by NStepBatchSampler but by the prioritized exp replay. Apparently setting a priority to 0 does not guarantee that the index will never be sampled. So it occasionally happens with low probability. I'll propose a fix to this in another PR to keep things separate.

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #56 (b190c60) into main (c89ed6f) will increase coverage by 0.89%.
The diff coverage is 97.50%.

@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   73.54%   74.44%   +0.89%     
==========================================
  Files          15       15              
  Lines         756      763       +7     
==========================================
+ Hits          556      568      +12     
+ Misses        200      195       -5     
Files Changed Coverage Δ
src/traces.jl 79.44% <0.00%> (-0.45%) ⬇️
src/common/sum_tree.jl 81.60% <100.00%> (ø)
src/samplers.jl 84.25% <100.00%> (+4.84%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@HenriDeh HenriDeh mentioned this pull request Aug 23, 2023
@HenriDeh HenriDeh merged commit 03489a0 into main Sep 14, 2023
@HenriDeh HenriDeh deleted the nstep branch September 14, 2023 09:57
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.

2 participants