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

Should min_length_time_axis default to sample_sequence_length? #44

Open
mickvangelderen opened this issue Nov 9, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@mickvangelderen
Copy link
Contributor

As far as I understand, in order to sample a trajectory of length sample_sequence_length, the time axis dimensions, defined by min_length_time_axis, must be at least as long as sample_sequence_length.

I think the API would be improved if min_length_time_axis and min_length can default to sample_sequence_length and add_batch_size * sample_sequence_length respectively. Currently the tests raise warnings triggered by flashbax itself about the min_length or min_length_time_axis being smaller than the required minimum.

Perhaps the arguments can be removed entirely, but keeping them allows users to require the buffer to have more data before it can be sampled, which is probably a legitimate use-case.

Note, I am only just getting familiar with this library so I may have misunderstood something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant