class
SushiAI::Data::Rings
Generates concentric rings labelled by ring index.
- Declared in
include/SushiAI/data/dataset.hpp- Inherits
SushiAI::Data::Dataset
Decision boundary is quadratic in inputs, making it linearly non-separable. Distractor features contain pure Gaussian noise.
Public member functions
Rings(SushiBLAS::Engine &engine, RingsOptions options={})Generates the whole dataset.
Parameters
engineThe engine that allocates the tensors.
optionsThe problem's shape.
Exceptions
ErrorIf any extent in
optionsis not positive, or the distractor count is negative.
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.

