DataSetBatch Struct Reference

Public Member Functions

 DataSetBatch ()
 Default constructor. More...
 
 DataSetBatch (const Index &, DataSet *)
 
virtual ~DataSetBatch ()
 Destructor. More...
 
Index get_samples_number () const
 
void set (const Index &, DataSet *)
 
void fill (const Tensor< Index, 1 > &, const Tensor< Index, 1 > &, const Tensor< Index, 1 > &)
 
void print () const
 

Public Attributes

Index samples_number = 0
 
DataSetdata_set_pointer = nullptr
 
Tensor< type, 2 > inputs_2d
 
Tensor< type, 4 > inputs_4d
 
Tensor< type, 2 > targets_2d
 

Detailed Description

Definition at line 886 of file data_set.h.

Constructor & Destructor Documentation

◆ DataSetBatch() [1/2]

DataSetBatch ( )
inline

Default constructor.

Definition at line 890 of file data_set.h.

◆ DataSetBatch() [2/2]

DataSetBatch ( const Index &  new_samples_number,
DataSet new_data_set_pointer 
)

Definition at line 11061 of file data_set.cpp.

◆ ~DataSetBatch()

virtual ~DataSetBatch ( )
inlinevirtual

Destructor.

Definition at line 896 of file data_set.h.

Member Function Documentation

◆ fill()

void fill ( const Tensor< Index, 1 > &  samples,
const Tensor< Index, 1 > &  inputs,
const Tensor< Index, 1 > &  targets 
)

Definition at line 11016 of file data_set.cpp.

◆ get_samples_number()

Index get_samples_number ( ) const

Definition at line 11095 of file data_set.cpp.

◆ print()

void print ( ) const

Definition at line 11101 of file data_set.cpp.

◆ set()

void set ( const Index &  new_samples_number,
DataSet new_data_set_pointer 
)

Definition at line 11067 of file data_set.cpp.

Member Data Documentation

◆ data_set_pointer

DataSet* data_set_pointer = nullptr

Definition at line 908 of file data_set.h.

◆ inputs_2d

Tensor<type, 2> inputs_2d

Definition at line 910 of file data_set.h.

◆ inputs_4d

Tensor<type, 4> inputs_4d

Definition at line 911 of file data_set.h.

◆ samples_number

Index samples_number = 0

Definition at line 906 of file data_set.h.

◆ targets_2d

Tensor<type, 2> targets_2d

Definition at line 913 of file data_set.h.


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