Deep Learning Algorithm Implementations 1.0.0
C++ implementations of fundamental deep learning algorithms
|
#include <data_loader.hpp>
Static Public Member Functions | |
static MatrixD | load_csv (const std::string &filename, bool has_header=true, char delimiter=',') |
Load CSV file into a matrix. | |
static std::pair< MatrixD, MatrixD > | load_features_labels (const std::string &filename, const std::vector< size_t > &feature_cols, const std::vector< size_t > &label_cols, bool has_header=true, char delimiter=',') |
Load specific columns as features and labels. | |
Definition at line 185 of file data_loader.hpp.
|
static |
Load CSV file into a matrix.
filename | Path to the CSV file |
has_header | Whether the file contains a header row |
delimiter | Character used to separate values |
Definition at line 93 of file data_loader.cpp.
|
static |
Load specific columns as features and labels.
filename | Path to the CSV file |
feature_cols | Column indices to use as features |
label_cols | Column indices to use as labels |
has_header | Whether the file contains a header row |
delimiter | Character used to separate values |
Definition at line 145 of file data_loader.cpp.