Turi Create  4.0
turi::ml_data_internal::row_metadata Struct Reference

#include <ml/ml_data/data_storage/internal_metadata.hpp>

Public Member Functions

void setup (const std::vector< std::shared_ptr< column_metadata > > &_metadata_vect, bool _has_target)
 
void set_index_sizes (const std::shared_ptr< ml_metadata > &m)
 
void save (turi::oarchive &oarc) const
 
void load (turi::iarchive &iarc)
 

Public Attributes

bool data_size_is_constant = false
 
size_t constant_data_size = 0
 
flex_nd_vec::index_range_type nd_array_size
 
size_t num_x_columns = 0
 
size_t total_num_columns = 0
 
std::vector< column_metadata_ptr > metadata_vect
 

Detailed Description

This structure holds the main data being passed around internally. It contains all the information needed to quickly unpack a row from the internal data structure.

Definition at line 168 of file internal_metadata.hpp.

Member Function Documentation

◆ load()

void turi::ml_data_internal::row_metadata::load ( turi::iarchive iarc)

Serialization – load.

◆ save()

void turi::ml_data_internal::row_metadata::save ( turi::oarchive oarc) const

Serialization – save.

◆ set_index_sizes()

void turi::ml_data_internal::row_metadata::set_index_sizes ( const std::shared_ptr< ml_metadata > &  m)

Constructs all the information from a vector of points.

◆ setup()

void turi::ml_data_internal::row_metadata::setup ( const std::vector< std::shared_ptr< column_metadata > > &  _metadata_vect,
bool  _has_target 
)

Constructs all the information from a vector of points.

Member Data Documentation

◆ constant_data_size

size_t turi::ml_data_internal::row_metadata::constant_data_size = 0

If the data size is constant, then this gives its size. Otherwise, it's set to 0.

Definition at line 191 of file internal_metadata.hpp.

◆ data_size_is_constant

bool turi::ml_data_internal::row_metadata::data_size_is_constant = false

True if the data size is constant, and false otherwise.

Definition at line 186 of file internal_metadata.hpp.

◆ metadata_vect

std::vector<column_metadata_ptr> turi::ml_data_internal::row_metadata::metadata_vect

Pointers to the original metadata vectors.

Definition at line 207 of file internal_metadata.hpp.

◆ nd_array_size

flex_nd_vec::index_range_type turi::ml_data_internal::row_metadata::nd_array_size

To be used only if it's an ndarray column type.

Definition at line 195 of file internal_metadata.hpp.

◆ num_x_columns

size_t turi::ml_data_internal::row_metadata::num_x_columns = 0

Number of columns, not including target.

Definition at line 199 of file internal_metadata.hpp.

◆ total_num_columns

size_t turi::ml_data_internal::row_metadata::total_num_columns = 0

Total number of columns, including possible target.

Definition at line 203 of file internal_metadata.hpp.


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