Turi Create
4.0
|
#include <toolkits/ml_data_2/iterators/composite_row_type.hpp>
Public Member Functions | |
composite_row_specification (const std::shared_ptr< ml_metadata > &_metadata) | |
size_t | add_sparse_subrow (const std::vector< size_t > &column_indices) |
size_t | add_dense_subrow (const std::vector< size_t > &column_indices) |
size_t | add_flex_type_subrow (const std::vector< size_t > &column_indices) |
The specification for a composite row container. See documentation on composite_row_container for use.
Definition at line 117 of file composite_row_type.hpp.
turi::v2::composite_row_specification::composite_row_specification | ( | const std::shared_ptr< ml_metadata > & | _metadata | ) |
Constructor; requires a metadata object.
size_t turi::v2::composite_row_specification::add_dense_subrow | ( | const std::vector< size_t > & | column_indices | ) |
Add in a dense subrow. Returns the index in the dense_subrows attribute of the composite_row_container where this particular row will go upon filling from the iterator.
size_t turi::v2::composite_row_specification::add_flex_type_subrow | ( | const std::vector< size_t > & | column_indices | ) |
Add in a flexible type subrow. Returns the index in the flex_subrows attribute of the composite_row_container where this particular row will go upon filling from the iterator.
size_t turi::v2::composite_row_specification::add_sparse_subrow | ( | const std::vector< size_t > & | column_indices | ) |
Add in a sparse subrow. Returns the index in the sparse_subrows attribute of the composite_row_container where this particular row will go.