LBANN  0.103.0
LivermoreBigArtificialNeuralNetworkToolkit
lbann::csv_reader Class Reference

#include <data_reader_csv.hpp>

Inheritance diagram for lbann::csv_reader:
[legend]
Collaboration diagram for lbann::csv_reader:
[legend]

Public Member Functions

 csv_reader (bool shuffle=true)
 
 csv_reader (const csv_reader &)
 
csv_readeroperator= (const csv_reader &)
 
 ~csv_reader () override
 
csv_readercopy () const override
 
std::string get_type () const override
 
void set_label_col (int col)
 Set the label column. More...
 
void set_response_col (int col)
 Set the response column. More...
 
void disable_labels (bool b=true)
 Disable fetching labels. More...
 
void enable_responses (bool b=false)
 Enable fetching responses (disabled by default). More...
 
void set_separator (char sep)
 Set the column separator (default is ','). More...
 
void set_skip_cols (int cols)
 Set the number of columns (from the left) to skip; default 0. More...
 
void set_skip_rows (int rows)
 Set the number of rows (from the top) to skip; default 0. More...
 
void set_has_header (bool b)
 Set whether the CSV file has a header; default true. More...
 
void set_column_transform (int col, std::function< DataType(const std::string &)> f)
 
void set_label_transform (std::function< int(const std::string &)> f)
 
void set_response_transform (std::function< DataType(const std::string &)> f)
 
void load () override
 
void setup (int num_io_threads, observer_ptr< thread_pool > io_thread_pool) override
 
int get_num_labels () const override
 Return the number of labels (classes) in this dataset. More...
 
int get_linearized_data_size () const override
 Get the linearized size (i.e. number of elements) in a sample. More...
 
int get_linearized_label_size () const override
 Get the linearized size (i.e. number of elements) in a label. More...
 
const std::vector< El::Int > get_data_dims () const override
 Get the dimensions of the data. More...
 
std::vector< DataType > fetch_line_label_response (int data_id)
 
- Public Member Functions inherited from lbann::generic_data_reader
 generic_data_reader (bool shuffle=true)
 
 generic_data_reader (const generic_data_reader &)=default
 
generic_data_readeroperator= (const generic_data_reader &)=default
 
virtual ~generic_data_reader ()
 
template<class Archive >
void serialize (Archive &ar)
 
void set_comm (lbann_comm *comm)
 set the comm object More...
 
lbann_commget_comm () const
 returns a (possibly nullptr) to comm More...
 
virtual bool has_conduit_output ()
 
void set_file_dir (std::string s)
 
void set_local_file_dir (std::string s)
 
void set_max_files_to_load (size_t n)
 
std::string get_file_dir () const
 
std::string get_local_file_dir () const
 
void set_data_sample_list (std::string s)
 
std::string get_data_sample_list () const
 
void keep_sample_order (bool same_order=false)
 
void set_data_filename (std::string s)
 
std::string get_data_filename () const
 
void set_label_filename (std::string s)
 
std::string get_label_filename () const
 
void set_shuffle (bool b)
 
bool is_shuffled () const
 
void set_shuffled_indices (const std::vector< int > &indices)
 
const std::vector< int > & get_shuffled_indices () const
 
void set_first_n (int n)
 
void set_absolute_sample_count (size_t s)
 
void set_use_fraction (double s)
 
virtual void set_execution_mode_split_fraction (execution_mode m, double s)
 
virtual void set_role (std::string role)
 
std::string get_role () const
 
int fetch (std::map< data_field_type, CPUMat *> &input_buffers, El::Matrix< El::Int > &indices_fetched, size_t mb_size)
 Fetch a mini-batch worth of data, including samples, labels, responses (as appropriate) More...
 
int fetch (std::vector< conduit::Node > &samples, El::Matrix< El::Int > &indices_fetched, size_t mb_size)
 
virtual bool has_data_field (data_field_type data_field) const
 Check to see if the data reader supports this specific data field. More...
 
virtual bool has_labels () const
 
virtual bool has_responses () const
 
void set_has_data_field (data_field_type const data_field, const bool b)
 Whether or not a data reader has a data field. More...
 
virtual void set_has_labels (const bool b)
 Whether or not a data reader has labels. More...
 
virtual void set_has_responses (const bool b)
 Whether or not a data reader has a response field. More...
 
void start_data_store_mini_batch_exchange ()
 
void finish_data_store_mini_batch_exchange ()
 
virtual bool update (bool is_active_reader)
 
virtual int get_num_responses () const
 Return the number of responses in this dataset. More...
 
virtual int get_linearized_response_size () const
 Get the linearized size (i.e. number of elements) in a response. More...
 
virtual int get_linearized_size (data_field_type const &data_field) const
 get the linearized size of what is identified by desc. More...
 
virtual std::vector< El::Int > get_slice_points (const slice_points_mode var_category, bool &is_supported)
 
virtual bool position_valid () const
 True if the data reader's current position is valid. More...
 
virtual bool position_is_overrun () const
 
bool at_new_epoch () const
 True if the data reader is at the start of an epoch. More...
 
void set_mini_batch_size (const int s)
 Set the mini batch size. More...
 
int get_mini_batch_size () const
 Get the mini batch size. More...
 
int get_loaded_mini_batch_size () const
 Get the loaded mini-batch size. More...
 
int get_current_mini_batch_size () const
 Get the current mini-batch size. More...
 
int get_mini_batch_max () const
 Return the full mini_batch_size. More...
 
void set_stride_to_next_mini_batch (const int s)
 Set the mini batch stride. More...
 
int get_stride_to_next_mini_batch () const
 Return the mini batch stride. More...
 
void set_sample_stride (const int s)
 Set the sample stride. More...
 
int get_sample_stride () const
 Return the sample stride. More...
 
void set_iteration_stride (const int s)
 Set the iteration stride. More...
 
int get_iteration_stride () const
 Return the iteration stride. More...
 
virtual void set_base_offset (const int s)
 Return the base offset. More...
 
int get_base_offset () const
 Return the base offset. More...
 
void set_last_mini_batch_size (const int s)
 Set the last mini batch size. More...
 
int get_last_mini_batch_size () const
 Return the last mini batch size. More...
 
void set_stride_to_last_mini_batch (const int s)
 Set the last mini batch stride. More...
 
int get_stride_to_last_mini_batch () const
 Return the last mini batch stride. More...
 
void set_num_parallel_readers (const int s)
 Set the number of parallel readers per model. More...
 
int get_num_parallel_readers () const
 Return the number of parallel readers per model. More...
 
virtual void set_reset_mini_batch_index (const int s)
 Set the starting mini-batch index for the epoch. More...
 
int get_reset_mini_batch_index () const
 Return the starting mini-batch index for the epoch. More...
 
int get_loaded_mini_batch_index () const
 Return the current mini-batch index for the epoch. More...
 
int get_current_mini_batch_index () const
 Return the current mini-batch index for the epoch. More...
 
void set_initial_position ()
 Set the current position based on the base and model offsets. More...
 
int get_position () const
 Get the current position in the data reader. More...
 
int get_next_position () const
 Get the next position in the data reader. More...
 
int * get_indices ()
 Get a pointer to the start of the shuffled indices. More...
 
virtual int get_num_data () const
 Get the number of samples in this dataset. More...
 
int get_num_unused_data (execution_mode m) const
 Get the number of unused samples in this dataset. More...
 
int * get_unused_data (execution_mode m)
 Get a pointer to the start of the unused sample indices. More...
 
const std::vector< int > & get_unused_indices (execution_mode m)
 
void set_num_iterations_per_epoch (int num_iterations_per_epoch)
 Set the number of iterations in each epoch. More...
 
int get_num_iterations_per_epoch () const
 Get the number of iterations in each epoch. More...
 
int get_current_step_in_epoch () const
 
void resize_shuffled_indices ()
 
void select_subset_of_data ()
 
virtual void use_unused_index_set (execution_mode m)
 
virtual bool has_list_per_model () const
 Does the data reader have a unique sample list per model. More...
 
virtual bool has_list_per_trainer () const
 Does the data reader have a unique sample list per trainer. More...
 
bool save_to_checkpoint_shared (persist &p, execution_mode mode)
 Given directory to store checkpoint files, write state to file and add to number of bytes written. More...
 
bool load_from_checkpoint_shared (persist &p, execution_mode mode)
 Given directory to store checkpoint files, read state from file and add to number of bytes read. More...
 
bool save_to_checkpoint_distributed (persist &p, execution_mode mode)
 
bool load_from_checkpoint_distributed (persist &p, execution_mode mode)
 Given directory to store checkpoint files, read state from file and add to number of bytes read. More...
 
const data_store_conduitget_data_store () const
 returns a const ref to the data store More...
 
data_store_conduitget_data_store ()
 returns a non-const ref to the data store More...
 
data_store_conduitget_data_store_ptr () const
 
void setup_data_store (int mini_batch_size)
 
void instantiate_data_store ()
 
virtual void preload_data_store ()
 
void set_gan_labelling (bool has_gan_labelling)
 
void set_gan_label_value (int gan_label_value)
 
void set_data_store (data_store_conduit *g)
 support of data store functionality More...
 
virtual bool data_store_active () const
 
virtual bool priming_data_store () const
 
virtual void post_update ()
 
void set_transform_pipeline (transform::transform_pipeline &&tp)
 
void print_get_methods (const std::string filename)
 Print the return values from various get_X methods to file. More...
 
size_t get_num_indices_to_use () const
 
void set_use_data_store (bool s)
 

Protected Member Functions

bool fetch_datum (CPUMat &X, int data_id, int mb_idx) override
 
bool fetch_label (CPUMat &Y, int data_id, int mb_idx) override
 Fetch the label associated with data_id. More...
 
bool fetch_response (CPUMat &Y, int data_id, int mb_idx) override
 Fetch the response associated with data_id. More...
 
std::vector< DataType > fetch_line (int data_id)
 
void skip_rows (std::ifstream &s, int rows)
 Skip rows in an ifstream. More...
 
void setup_ifstreams ()
 Initialize the ifstreams vector. More...
 
std::string fetch_raw_line (int data_id)
 
- Protected Member Functions inherited from lbann::generic_data_reader
size_t get_absolute_sample_count () const
 
double get_use_fraction () const
 
double get_execution_mode_split_fraction (execution_mode m) const
 
virtual bool fetch_data_block (std::map< data_field_type, CPUMat *> &input_buffers, El::Int block_offset, El::Int block_stride, El::Int mb_size, El::Matrix< El::Int > &indices_fetched)
 
bool fetch_data_block_conduit (std::vector< conduit::Node > &samples, El::Int block_offset, El::Int block_stride, El::Int mb_size, El::Matrix< El::Int > &indices_fetched)
 
virtual bool fetch_data_field (data_field_type data_field, CPUMat &Y, int data_id, int mb_idx)
 Called by fetch_data, fetch_label, fetch_response. More...
 
virtual bool fetch_conduit_node (conduit::Node &sample, int data_id)
 
CPUMat create_datum_view (CPUMat &X, const int mb_idx)
 
virtual void preprocess_data_source (int tid)
 
virtual void postprocess_data_source (int tid)
 
virtual void shuffle_indices ()
 Shuffle indices (uses the data_seq_generator) More...
 
virtual void shuffle_indices (rng_gen &gen)
 Shuffle indices and profide a random number generator. More...
 
void error_check_counts () const
 

Protected Attributes

char m_separator = ','
 String value that separates data. More...
 
int m_skip_cols = 0
 Number of columns (from the left) to skip. More...
 
int m_skip_rows = 0
 Number of rows to skip. More...
 
bool m_has_header = true
 Whether the CSV file has a header. More...
 
int m_label_col = -1
 
int m_response_col = -1
 Column containing responses; functions the same as the label column. More...
 
bool m_disable_labels = false
 Whether to fetch labels. More...
 
bool m_disable_responses = true
 Whether to fetch responses. More...
 
int m_num_cols = 0
 Number of columns (including the label column and skipped columns). More...
 
int m_num_samples = 0
 Number of samples. More...
 
int m_num_labels = 0
 Number of label classes. More...
 
std::vector< std::ifstream * > m_ifstreams
 Input file streams (per-thread). More...
 
std::vector< std::streampos > m_index
 
std::vector< int > m_labels
 Store labels. More...
 
std::vector< DataType > m_responses
 Store responses. More...
 
std::unordered_map< int, std::function< DataType(const std::string &)> > m_col_transforms
 Per-column transformation functions. More...
 
std::function< int(const std::string &)> m_label_transform
 Label transform function that converts to an int. More...
 
std::function< DataType(const std::string &)> m_response_transform
 Response transform function that converts to a DataType. More...
 
- Protected Attributes inherited from lbann::generic_data_reader
bool m_verbose = false
 
std::unordered_set< int > m_using_random_node
 
data_store_conduitm_data_store
 
lbann_commm_comm
 
bool m_use_data_store = false
 
std::map< data_field_type, bool > m_supported_input_types
 Holds a true value for each input data type that is supported. Use an ordered map so that checkpoints are stable. More...
 
bool m_gan_labelling
 
int m_gan_label_value
 
observer_ptr< thread_poolm_io_thread_pool
 
bool m_keep_sample_order
 
transform::transform_pipeline m_transform_pipeline
 
bool m_issue_warning
 

Additional Inherited Members

- Public Types inherited from lbann::generic_data_reader
using unused_index_map_t = std::map< execution_mode, std::vector< int > >
 
- Public Attributes inherited from lbann::generic_data_reader
int m_mini_batch_size
 
int m_current_pos
 
int m_stride_to_next_mini_batch
 
int m_base_offset
 
int m_sample_stride
 
int m_iteration_stride
 Stride used by parallel data readers within the model. More...
 
std::vector< int > m_shuffled_indices
 
unused_index_map_t m_unused_indices
 Record of the indicies that are not being used for training. More...
 
int m_last_mini_batch_size
 
int m_stride_to_last_mini_batch
 
int m_reset_mini_batch_index
 The index at which this data reader starts its epoch. More...
 
int m_loaded_mini_batch_idx
 The index of the current mini-batch that has been loaded. More...
 
int m_current_mini_batch_idx
 
int m_num_iterations_per_epoch
 
int m_num_parallel_readers
 How many iterations all readers will execute. More...
 
size_t m_max_files_to_load
 How many parallel readers are being used. More...
 
std::string m_file_dir
 
std::string m_local_file_dir
 
std::string m_data_sample_list
 
std::string m_data_fn
 
std::string m_label_fn
 
bool m_shuffle
 
size_t m_absolute_sample_count
 
std::map< execution_mode, double > m_execution_mode_split_fraction
 
double m_use_fraction
 
int m_first_n
 
std::string m_role
 

Detailed Description

Data reader for CSV (and similar) files. This will parse a header to determine how many columns of data there are, and will return each row split based on a separator. This does not handle quotes or escape sequences. The label column is by default converted to an integer.

Note
This does not currently support comments or blank lines.

Definition at line 44 of file data_reader_csv.hpp.

Constructor & Destructor Documentation

◆ csv_reader() [1/2]

lbann::csv_reader::csv_reader ( bool  shuffle = true)

This defaults to using the last column for the label/response.

Here is the caller graph for this function:

◆ csv_reader() [2/2]

lbann::csv_reader::csv_reader ( const csv_reader )

◆ ~csv_reader()

lbann::csv_reader::~csv_reader ( )
override

Member Function Documentation

◆ copy()

csv_reader* lbann::csv_reader::copy ( ) const
inlineoverridevirtual

Implements lbann::generic_data_reader.

Reimplemented in lbann::data_reader_nci.

Definition at line 55 of file data_reader_csv.hpp.

Here is the call graph for this function:

◆ disable_labels()

void lbann::csv_reader::disable_labels ( bool  b = true)
inline

Disable fetching labels.

Definition at line 64 of file data_reader_csv.hpp.

◆ enable_responses()

void lbann::csv_reader::enable_responses ( bool  b = false)
inline

Enable fetching responses (disabled by default).

Definition at line 70 of file data_reader_csv.hpp.

◆ fetch_datum()

bool lbann::csv_reader::fetch_datum ( CPUMat X,
int  data_id,
int  mb_idx 
)
overrideprotectedvirtual

Fetch the data associated with data_id. Note this does not normalize the data.

Reimplemented from lbann::generic_data_reader.

Here is the caller graph for this function:

◆ fetch_label()

bool lbann::csv_reader::fetch_label ( CPUMat Y,
int  data_id,
int  mb_idx 
)
overrideprotectedvirtual

Fetch the label associated with data_id.

Reimplemented from lbann::generic_data_reader.

Here is the caller graph for this function:

◆ fetch_line()

std::vector<DataType> lbann::csv_reader::fetch_line ( int  data_id)
protected

Return the parsed CSV line. This does not extract the label/response.

Here is the caller graph for this function:

◆ fetch_line_label_response()

std::vector<DataType> lbann::csv_reader::fetch_line_label_response ( int  data_id)

Return the parsed CSV line and store the label and response in the m_labels and m_responses vectors, respectively. The label and response are not present in the vector. (Made public to support data store functionality)

Here is the caller graph for this function:

◆ fetch_raw_line()

std::string lbann::csv_reader::fetch_raw_line ( int  data_id)
protected

Return a raw line from the CSV file. (Made public to support data store functionality)

Here is the caller graph for this function:

◆ fetch_response()

bool lbann::csv_reader::fetch_response ( CPUMat Y,
int  data_id,
int  mb_idx 
)
overrideprotectedvirtual

Fetch the response associated with data_id.

Reimplemented from lbann::generic_data_reader.

Here is the caller graph for this function:

◆ get_data_dims()

const std::vector<El::Int> lbann::csv_reader::get_data_dims ( ) const
inlineoverridevirtual

Get the dimensions of the data.

Reimplemented from lbann::generic_data_reader.

Definition at line 132 of file data_reader_csv.hpp.

Here is the call graph for this function:

◆ get_linearized_data_size()

int lbann::csv_reader::get_linearized_data_size ( ) const
inlineoverridevirtual

Get the linearized size (i.e. number of elements) in a sample.

Reimplemented from lbann::generic_data_reader.

Definition at line 121 of file data_reader_csv.hpp.

Here is the caller graph for this function:

◆ get_linearized_label_size()

int lbann::csv_reader::get_linearized_label_size ( ) const
inlineoverridevirtual

Get the linearized size (i.e. number of elements) in a label.

Reimplemented from lbann::generic_data_reader.

Definition at line 131 of file data_reader_csv.hpp.

◆ get_num_labels()

int lbann::csv_reader::get_num_labels ( ) const
inlineoverridevirtual

Return the number of labels (classes) in this dataset.

This is called at the end of update; it permits data readers to perform actions that are specific to their data sets, for example, data_reader_jag_conduit_hdf5 has the 'primary' data reader bcast its shuffled indices to the other data readers. In general most data readers will probably not overide this method. It may also be called outside of update.

Reimplemented from lbann::generic_data_reader.

Definition at line 120 of file data_reader_csv.hpp.

◆ get_type()

std::string lbann::csv_reader::get_type ( ) const
inlineoverridevirtual

Return this data_reader's type

Implements lbann::generic_data_reader.

Reimplemented in lbann::data_reader_nci.

Definition at line 57 of file data_reader_csv.hpp.

◆ load()

void lbann::csv_reader::load ( )
overridevirtual

This parses the header of the CSV to determine column information.

Implements lbann::generic_data_reader.

Here is the caller graph for this function:

◆ operator=()

csv_reader& lbann::csv_reader::operator= ( const csv_reader )

◆ set_column_transform()

void lbann::csv_reader::set_column_transform ( int  col,
std::function< DataType(const std::string &)>  f 
)
inline

Supply a custom transform to convert an input string to a numerical value.

Parameters
colThe column to apply this transform to; do not account for skipped columns.
fThe transform to apply.

Definition at line 90 of file data_reader_csv.hpp.

◆ set_has_header()

void lbann::csv_reader::set_has_header ( bool  b)
inline

Set whether the CSV file has a header; default true.

Definition at line 82 of file data_reader_csv.hpp.

◆ set_label_col()

void lbann::csv_reader::set_label_col ( int  col)
inline

Set the label column.

Definition at line 60 of file data_reader_csv.hpp.

◆ set_label_transform()

void lbann::csv_reader::set_label_transform ( std::function< int(const std::string &)>  f)
inline

Supply a custom transform to convert the label column to an integer. Note that the label should be an integer starting from 0.

Definition at line 100 of file data_reader_csv.hpp.

◆ set_response_col()

void lbann::csv_reader::set_response_col ( int  col)
inline

Set the response column.

Definition at line 62 of file data_reader_csv.hpp.

◆ set_response_transform()

void lbann::csv_reader::set_response_transform ( std::function< DataType(const std::string &)>  f)
inline

Supply a custom transform to convert the response column to a DataType.

Definition at line 107 of file data_reader_csv.hpp.

Here is the call graph for this function:

◆ set_separator()

void lbann::csv_reader::set_separator ( char  sep)
inline

Set the column separator (default is ',').

Definition at line 76 of file data_reader_csv.hpp.

◆ set_skip_cols()

void lbann::csv_reader::set_skip_cols ( int  cols)
inline

Set the number of columns (from the left) to skip; default 0.

Definition at line 78 of file data_reader_csv.hpp.

◆ set_skip_rows()

void lbann::csv_reader::set_skip_rows ( int  rows)
inline

Set the number of rows (from the top) to skip; default 0.

Definition at line 80 of file data_reader_csv.hpp.

◆ setup()

void lbann::csv_reader::setup ( int  num_io_threads,
observer_ptr< thread_pool io_thread_pool 
)
overridevirtual

Prepare to start processing an epoch of data. If shuffle is true, then shuffle the indices of the data set If the base offset is not specified set it to 0 If the stride is not specified set it to batch size

Reimplemented from lbann::generic_data_reader.

Here is the caller graph for this function:

◆ setup_ifstreams()

void lbann::csv_reader::setup_ifstreams ( )
protected

Initialize the ifstreams vector.

Here is the caller graph for this function:

◆ skip_rows()

void lbann::csv_reader::skip_rows ( std::ifstream &  s,
int  rows 
)
protected

Skip rows in an ifstream.

Here is the caller graph for this function:

Member Data Documentation

◆ m_col_transforms

std::unordered_map<int, std::function<DataType(const std::string&)> > lbann::csv_reader::m_col_transforms
protected

Per-column transformation functions.

Definition at line 212 of file data_reader_csv.hpp.

◆ m_disable_labels

bool lbann::csv_reader::m_disable_labels = false
protected

Whether to fetch labels.

Definition at line 189 of file data_reader_csv.hpp.

◆ m_disable_responses

bool lbann::csv_reader::m_disable_responses = true
protected

Whether to fetch responses.

Definition at line 191 of file data_reader_csv.hpp.

◆ m_has_header

bool lbann::csv_reader::m_has_header = true
protected

Whether the CSV file has a header.

Definition at line 179 of file data_reader_csv.hpp.

◆ m_ifstreams

std::vector<std::ifstream*> lbann::csv_reader::m_ifstreams
protected

Input file streams (per-thread).

Definition at line 199 of file data_reader_csv.hpp.

◆ m_index

std::vector<std::streampos> lbann::csv_reader::m_index
protected

Index mapping lines (samples) to their start offset within the file. This excludes the header, but includes a final entry indicating the length of the file.

Definition at line 205 of file data_reader_csv.hpp.

◆ m_label_col

int lbann::csv_reader::m_label_col = -1
protected

Column containing labels. -1 is used for the last column. The label column ignores skipped columns, and can be among columns that are skipped.

Definition at line 185 of file data_reader_csv.hpp.

◆ m_label_transform

std::function<int(const std::string&)> lbann::csv_reader::m_label_transform
protected
Initial value:
=
[](const std::string& s) -> int { return std::stoi(s); }

Label transform function that converts to an int.

Definition at line 214 of file data_reader_csv.hpp.

◆ m_labels

std::vector<int> lbann::csv_reader::m_labels
protected

Store labels.

Definition at line 207 of file data_reader_csv.hpp.

◆ m_num_cols

int lbann::csv_reader::m_num_cols = 0
protected

Number of columns (including the label column and skipped columns).

Definition at line 193 of file data_reader_csv.hpp.

◆ m_num_labels

int lbann::csv_reader::m_num_labels = 0
protected

Number of label classes.

Definition at line 197 of file data_reader_csv.hpp.

◆ m_num_samples

int lbann::csv_reader::m_num_samples = 0
protected

Number of samples.

Definition at line 195 of file data_reader_csv.hpp.

◆ m_response_col

int lbann::csv_reader::m_response_col = -1
protected

Column containing responses; functions the same as the label column.

Definition at line 187 of file data_reader_csv.hpp.

◆ m_response_transform

std::function<DataType(const std::string&)> lbann::csv_reader::m_response_transform
protected
Initial value:
=
[](const std::string& s) -> DataType { return std::stod(s); }

Response transform function that converts to a DataType.

Definition at line 217 of file data_reader_csv.hpp.

◆ m_responses

std::vector<DataType> lbann::csv_reader::m_responses
protected

Store responses.

Definition at line 209 of file data_reader_csv.hpp.

◆ m_separator

char lbann::csv_reader::m_separator = ','
protected

String value that separates data.

Definition at line 173 of file data_reader_csv.hpp.

◆ m_skip_cols

int lbann::csv_reader::m_skip_cols = 0
protected

Number of columns (from the left) to skip.

Definition at line 175 of file data_reader_csv.hpp.

◆ m_skip_rows

int lbann::csv_reader::m_skip_rows = 0
protected

Number of rows to skip.

Definition at line 177 of file data_reader_csv.hpp.


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