Turi Create  4.0
turi::v2::composite_row_specification Class Reference

#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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ composite_row_specification()

turi::v2::composite_row_specification::composite_row_specification ( const std::shared_ptr< ml_metadata > &  _metadata)

Constructor; requires a metadata object.

Member Function Documentation

◆ add_dense_subrow()

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.

◆ add_flex_type_subrow()

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.

◆ add_sparse_subrow()

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.


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