|
pulsatrix
|
Visits indices [0, dataset_size) in ascending order. More...
#include <sampler.hpp>


Public Member Functions | |
| void | reset (int64_t dataset_size) override |
| Begins a new epoch over a dataset of the given size. | |
| std::optional< int64_t > | next () override |
| Fetches the next index in this epoch's order. | |
Public Member Functions inherited from pulsatrix::Sampler | |
| virtual | ~Sampler ()=default |
Visits indices [0, dataset_size) in ascending order.
|
overridevirtual |
Fetches the next index in this epoch's order.
Implements pulsatrix::Sampler.
|
overridevirtual |
Begins a new epoch over a dataset of the given size.
| dataset_size | Number of samples to produce indices for. Must be >= 0 – internal invariant (PULSATRIX_ASSERT, not throw): DataLoader always calls this with Dataset::size()'s return value directly, never unvalidated external input. |
Implements pulsatrix::Sampler.