Turi Create  4.0
turi::activity_classification::data_iterator::parameters Struct Reference

#include <toolkits/activity_classification/ac_data_iterator.hpp>

Public Attributes

gl_sframe data
 
std::string target_column_name
 
std::string session_id_column_name
 
std::vector< std::string > feature_column_names
 
size_t prediction_window = 100
 
size_t predictions_in_chunk = 20
 
flex_list class_labels
 
bool is_train = false
 
bool use_data_augmentation = false
 
int random_seed = 0
 

Detailed Description

Defines the inputs to a data_iterator factory function.

Definition at line 28 of file ac_data_iterator.hpp.

Member Data Documentation

◆ class_labels

flex_list turi::activity_classification::data_iterator::parameters::class_labels

The expected class labels, indexed by identifier.

If empty, then the labels will be inferred from the data. If non-empty, an exception will be thrown upon encountering an unexpected label.

Definition at line 63 of file ac_data_iterator.hpp.

◆ data

gl_sframe turi::activity_classification::data_iterator::parameters::data

The SFrame to traverse

Definition at line 31 of file ac_data_iterator.hpp.

◆ feature_column_names

std::vector<std::string> turi::activity_classification::data_iterator::parameters::feature_column_names

The names of the feature columns.

Definition at line 44 of file ac_data_iterator.hpp.

◆ is_train

bool turi::activity_classification::data_iterator::parameters::is_train = false

Set to true, when the data is used for training.

Definition at line 66 of file ac_data_iterator.hpp.

◆ prediction_window

size_t turi::activity_classification::data_iterator::parameters::prediction_window = 100

Each group of this many consecutive samples from the same session are assumed to have the same class label.

Definition at line 50 of file ac_data_iterator.hpp.

◆ predictions_in_chunk

size_t turi::activity_classification::data_iterator::parameters::predictions_in_chunk = 20

Each session is segmented into chunks of this many prediction windows.

Definition at line 55 of file ac_data_iterator.hpp.

◆ random_seed

int turi::activity_classification::data_iterator::parameters::random_seed = 0

Determines results of data augmentation if enabled.

Definition at line 72 of file ac_data_iterator.hpp.

◆ session_id_column_name

std::string turi::activity_classification::data_iterator::parameters::session_id_column_name

The name of the column containing the session ID.

Definition at line 41 of file ac_data_iterator.hpp.

◆ target_column_name

std::string turi::activity_classification::data_iterator::parameters::target_column_name

The name of the column containing the target variable.

If empty, then the output will not contain labels or weights.

Definition at line 38 of file ac_data_iterator.hpp.

◆ use_data_augmentation

bool turi::activity_classification::data_iterator::parameters::use_data_augmentation = false

Augments training data when set to true

Definition at line 69 of file ac_data_iterator.hpp.


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