class
SushiAI::Data::Dataset
The seam every training loop reads through.
- Declared in
include/SushiAI/data/dataset.hpp
Public member functions
virtual ~Dataset()=defaultvirtual int64_t batch_size() const noexcept=0Samples per batch.
virtual int64_t input_dim() const noexcept=0Features per sample.
virtual int64_t num_classes() const noexcept=0How many classes the targets span.
virtual std::size_t batch_count() const noexcept=0How many batches an epoch holds.
virtual const Batch & batch(std::size_t index) const =0One batch.
Parameters
indexWhich batch, in [0, batch_count()).
Returns
The batch; owned by the dataset.
Exceptions
ErrorIf
indexis out of range.
virtual std::string_view name() const noexcept=0A short name for a run report.

