Skip to content

Multi step sampler #58

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

Merged
merged 6 commits into from
Sep 14, 2023
Merged

Multi step sampler #58

merged 6 commits into from
Sep 14, 2023

Conversation

HenriDeh
Copy link
Member

@HenriDeh HenriDeh commented Sep 4, 2023

This PR adds a new sampler. Multistep sampler will simply fetch steps [x, x+1, ..., x + n -1] for each trace of each sampled index x.
Like NStepBatchSampler, n is truncated at the end of the episode if necessary. Unlike other samplers, the batch is not returned in a single multi-dimensional array but in a vector of length batchsize that contains each sample. It was not possible to use a single multi-dimensional array because of the truncation of the n's that result in different dimension sizes of the sampled elements.

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Merging #58 (7d2b8ee) into main (e55919c) will increase coverage by 0.14%.
The diff coverage is 83.01%.

@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   74.50%   74.65%   +0.14%     
==========================================
  Files          15       15              
  Lines         765      801      +36     
==========================================
+ Hits          570      598      +28     
- Misses        195      203       +8     
Files Changed Coverage Δ
src/samplers.jl 82.87% <82.69%> (-1.67%) ⬇️
src/normalization.jl 63.09% <100.00%> (ø)

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

@HenriDeh HenriDeh merged commit 70f1a1f into main Sep 14, 2023
@HenriDeh HenriDeh deleted the MultiStepSampler branch September 14, 2023 11:21
@HenriDeh HenriDeh mentioned this pull request Sep 20, 2023
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