Turi Create
4.0
|
#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 |
Defines the inputs to a data_iterator factory function.
Definition at line 28 of file ac_data_iterator.hpp.
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.
gl_sframe turi::activity_classification::data_iterator::parameters::data |
The SFrame to traverse
Definition at line 31 of file ac_data_iterator.hpp.
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.
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.
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.
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.
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.
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.
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.
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.