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

This wraps any training data set to restrict the range of samples to a subset of the total. More...

#include <TrainingDataView.h>

Inherits MachineLearning::ILabeledTrainingData.

Public Member Functions

 AZ_TYPE_INFO (TrainingDataView, "{BF396C77-4348-46BA-9606-275A3454738E}", ILabeledTrainingData)
 
 TrainingDataView (ILabeledTrainingDataPtr sourceData)
 
bool IsValid () const
 
void SetSourceData (ILabeledTrainingDataPtr sourceData)
 
void SetRange (AZStd::size_t first, AZStd::size_t last)
 
AZStd::size_t GetOriginalSize () const
 
void ShuffleSamples ()
 
bool LoadArchive (const AZ::IO::Path &imageFilename, const AZ::IO::Path &labelFilename) override
 
AZStd::size_t GetSampleCount () const override
 Returns the total number of samples contained in the training data set.
 
const AZ::VectorN & GetLabelByIndex (AZStd::size_t index) override
 Returns the index-th label in the training data set.
 
const AZ::VectorN & GetDataByIndex (AZStd::size_t index) override
 Returns the index-th set of activations in the training data set.
 
- Public Member Functions inherited from MachineLearning::ILabeledTrainingData
 AZ_TYPE_INFO (ILabeledTrainingData, "{50DF457E-3EAC-4114-8444-023E64973AD9}")
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Public Attributes

AZStd::size_t m_first = 0
 
AZStd::size_t m_last = 0
 

Detailed Description

This wraps any training data set to restrict the range of samples to a subset of the total.

Member Function Documentation

◆ LoadArchive()

bool MachineLearning::TrainingDataView::LoadArchive ( const AZ::IO::Path &  imageFilename,
const AZ::IO::Path &  labelFilename 
)
overridevirtual

◆ Reflect()

static void MachineLearning::TrainingDataView::Reflect ( AZ::ReflectContext *  context)
static

AzCore Reflection.

Parameters
contextreflection context

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