Turi Create  4.0
turi::v2::ml_data_internal::basic_column_statistics Class Reference

#include <toolkits/ml_data_2/statistics/basic_column_statistics.hpp>

Public Member Functions

size_t num_observations () const
 
void initialize ()
 Initialize the statistics – counting, mean, and stdev.
 
void update_categorical_statistics (size_t thread_idx, const std::vector< size_t > &cat_index_vect) GL_HOT_FLATTEN
 Update categorical statistics for a batch of categorical indices.
 
void update_numeric_statistics (size_t thread_idx, const std::vector< double > &value_vect) GL_HOT_FLATTEN
 Update categorical statistics for a batch of real values.
 
void update_dict_statistics (size_t thread_idx, const std::vector< std::pair< size_t, double > > &dict) GL_HOT_FLATTEN
 Update statistics after observing a dictionary.
 
void finalize ()
 
bool operator== (const column_statistics &other) const
 
bool operator!= (const column_statistics &other) const
 

Static Public Member Functions

static std::shared_ptr< column_statisticsfactory_create (const std::map< std::string, variant_type > &creation_options)
 

Detailed Description

column_metadata contains "meta data" concerning indexing of a single column of an SFrame. A collection of meta_data column objects is "all" the metadata required in the ml_data container.

Definition at line 26 of file basic_column_statistics.hpp.

Member Function Documentation

◆ factory_create()

static std::shared_ptr<column_statistics> turi::v2::ml_data_internal::column_statistics::factory_create ( const std::map< std::string, variant_type > &  creation_options)
staticinherited

The factory method for loading and instantiating the proper class

◆ finalize()

void turi::v2::ml_data_internal::basic_column_statistics::finalize ( )
virtual

Perform final computations on the different statistics. Must be called after all the data is filled.

Implements turi::v2::ml_data_internal::column_statistics.

◆ num_observations()

size_t turi::v2::ml_data_internal::basic_column_statistics::num_observations ( ) const
inlinevirtual

Returns the number of seen by the methods collecting the statistics.

Reimplemented from turi::v2::ml_data_internal::column_statistics.

Definition at line 36 of file basic_column_statistics.hpp.

◆ operator!=()

bool turi::v2::ml_data_internal::column_statistics::operator!= ( const column_statistics other) const
inherited

Inequality testing – slow! Use for debugging/testing

◆ operator==()

bool turi::v2::ml_data_internal::column_statistics::operator== ( const column_statistics other) const
inherited

Equality testing – slow! Use for debugging/testing


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