Open 3D Engine MachineLearning Gem API Reference 24.09.2
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
MachineLearning::ILabeledTrainingData Struct Referenceabstract

Inherited by MachineLearning::MnistDataLoader, and MachineLearning::TrainingDataView.

Public Member Functions

 AZ_TYPE_INFO (ILabeledTrainingData, "{50DF457E-3EAC-4114-8444-023E64973AD9}")
 
virtual bool LoadArchive (const AZ::IO::Path &imageFilename, const AZ::IO::Path &labelFilename)=0
 Loads the indicated label and data files.
 
virtual AZStd::size_t GetSampleCount () const =0
 Returns the total number of samples contained in the training data set.
 
virtual const AZ::VectorN & GetLabelByIndex (AZStd::size_t index)=0
 Returns the index-th label in the training data set.
 
virtual const AZ::VectorN & GetDataByIndex (AZStd::size_t index)=0
 Returns the index-th set of activations in the training data set.
 

Member Function Documentation

◆ GetDataByIndex()

virtual const AZ::VectorN & MachineLearning::ILabeledTrainingData::GetDataByIndex ( AZStd::size_t index)
pure virtual

Returns the index-th set of activations in the training data set.

Implemented in MachineLearning::MnistDataLoader, and MachineLearning::TrainingDataView.

◆ GetLabelByIndex()

virtual const AZ::VectorN & MachineLearning::ILabeledTrainingData::GetLabelByIndex ( AZStd::size_t index)
pure virtual

Returns the index-th label in the training data set.

Implemented in MachineLearning::MnistDataLoader, and MachineLearning::TrainingDataView.

◆ GetSampleCount()

virtual AZStd::size_t MachineLearning::ILabeledTrainingData::GetSampleCount ( ) const
pure virtual

Returns the total number of samples contained in the training data set.

Implemented in MachineLearning::MnistDataLoader, and MachineLearning::TrainingDataView.

◆ LoadArchive()

virtual bool MachineLearning::ILabeledTrainingData::LoadArchive ( const AZ::IO::Path & imageFilename,
const AZ::IO::Path & labelFilename )
pure virtual

Loads the indicated label and data files.

Implemented in MachineLearning::MnistDataLoader, and MachineLearning::TrainingDataView.


The documentation for this struct was generated from the following file: