Turi Create
4.0
|
#include <toolkits/ml_data_2/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) |
Public Attributes | |
bool | data_size_is_constant = false |
size_t | constant_data_size = 0 |
size_t | num_x_columns = 0 |
size_t | total_num_columns = 0 |
std::vector< column_metadata_ptr > | metadata_vect |
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 159 of file internal_metadata.hpp.
void turi::v2::ml_data_internal::row_metadata::set_index_sizes | ( | const std::shared_ptr< ml_metadata > & | m | ) |
Constructs all the information from a vector of points.
void turi::v2::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.
size_t turi::v2::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 181 of file internal_metadata.hpp.
bool turi::v2::ml_data_internal::row_metadata::data_size_is_constant = false |
True if the data size is constant, and false otherwise.
Definition at line 176 of file internal_metadata.hpp.
std::vector<column_metadata_ptr> turi::v2::ml_data_internal::row_metadata::metadata_vect |
Pointers to the original metadata vectors.
Definition at line 193 of file internal_metadata.hpp.
size_t turi::v2::ml_data_internal::row_metadata::num_x_columns = 0 |
Number of columns, not including target.
Definition at line 185 of file internal_metadata.hpp.
size_t turi::v2::ml_data_internal::row_metadata::total_num_columns = 0 |
Total number of columns, including possible target.
Definition at line 189 of file internal_metadata.hpp.