class
SushiAI::Data::SyntheticClassification
Generates deterministic, linearly separable multi-class batches.
- Declared in
include/SushiAI/data/dataset.hpp- Inherits
SushiAI::Data::Dataset
Samples are assigned to classes round-robin with Gaussian noise added to class means.
Public member functions
SyntheticClassification(SushiBLAS::Engine &engine, SyntheticOptions options={})Generates the whole dataset and waits for it.
Parameters
engineThe engine that allocates and fills the tensors.
optionsThe problem's shape.
Exceptions
ErrorIf any extent in
optionsis not positive.
virtual int64_t batch_size() const noexcept overrideSamples per batch.
virtual int64_t input_dim() const noexcept overrideFeatures per sample.
virtual int64_t num_classes() const noexcept overrideHow many classes the targets span.
virtual std::size_t batch_count() const noexcept overrideHow many batches an epoch holds.
virtual const Batch & batch(std::size_t index) const overrideOne 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 overrideA short name for a run report.

