Txeo v0.1
A Developer-Friendly TensorFlow C++ Wrapper
|
A container for managing training, evaluation, and test data splits. More...
#include <DataTable.h>
Public Member Functions | |
~DataTable ()=default | |
DataTable (const DataTable &)=default | |
DataTable (DataTable &&)=default | |
DataTable & | operator= (const DataTable &)=default |
DataTable & | operator= (DataTable &&)=default |
DataTable (txeo::Matrix< T > &&data, std::vector< size_t > x_cols, std::vector< size_t > y_cols) | |
Construct a DataTable with specified feature/label columns. | |
DataTable (const txeo::Matrix< T > &data, std::vector< size_t > x_cols, std::vector< size_t > y_cols) | |
DataTable (txeo::Matrix< T > &&data, std::vector< size_t > y_cols) | |
Construct a DataTable with specified label columns. All the remaining columns are considered features. | |
DataTable (const txeo::Matrix< T > &data, std::vector< size_t > y_cols) | |
DataTable (txeo::Matrix< T > &&data, std::vector< size_t > x_cols, std::vector< size_t > y_cols, size_t eval_percent) | |
Construct a DataTable with specified feature/label columns and evaluation split percentage. | |
DataTable (const txeo::Matrix< T > &data, std::vector< size_t > x_cols, std::vector< size_t > y_cols, size_t eval_percent) | |
DataTable (txeo::Matrix< T > &&data, std::vector< size_t > y_cols, size_t eval_percent) | |
Construct a DataTable with specified label columns and evaluation split percentage. All the remaining columns are considered x features. | |
DataTable (const txeo::Matrix< T > &data, std::vector< size_t > y_cols, size_t eval_percent) | |
DataTable (txeo::Matrix< T > &&data, std::vector< size_t > x_cols, std::vector< size_t > y_cols, size_t eval_percent, size_t eval_test) | |
Construct a DataTable with specified feature/label columns and evaluation/test split percentages. | |
DataTable (const txeo::Matrix< T > &data, std::vector< size_t > x_cols, std::vector< size_t > y_cols, size_t eval_percent, size_t eval_test) | |
DataTable (txeo::Matrix< T > &&data, std::vector< size_t > y_cols, size_t eval_percent, size_t eval_test) | |
Construct a DataTable with specified label columns and evaluation/test split percentages. All the remaining columns are considered x features. | |
DataTable (const txeo::Matrix< T > &data, std::vector< size_t > y_cols, size_t eval_percent, size_t eval_test) | |
DataTable (txeo::Matrix< T > &&x_train, txeo::Matrix< T > &&y_train, txeo::Matrix< T > &&x_eval, txeo::Matrix< T > &&y_eval, txeo::Matrix< T > &&x_test, txeo::Matrix< T > &&y_test) | |
DataTable (const txeo::Matrix< T > &x_train, const txeo::Matrix< T > &y_train, const txeo::Matrix< T > &x_eval, const txeo::Matrix< T > &y_eval, const txeo::Matrix< T > &x_test, const txeo::Matrix< T > &y_test) | |
DataTable (txeo::Matrix< T > &&x_train, txeo::Matrix< T > &&y_train, txeo::Matrix< T > &&x_eval, txeo::Matrix< T > &&y_eval) | |
DataTable (const txeo::Matrix< T > &x_train, const txeo::Matrix< T > &y_train, const txeo::Matrix< T > &x_eval, const txeo::Matrix< T > &y_eval) | |
DataTable (txeo::Matrix< T > &&x_train, txeo::Matrix< T > &&y_train) | |
DataTable (const txeo::Matrix< T > &x_train, const txeo::Matrix< T > &y_train) | |
const txeo::Matrix< T > & | x_train () const |
Returns training inputs matrix. | |
const txeo::Matrix< T > & | y_train () const |
Returns training outputs matrix. | |
const txeo::Matrix< T > * | x_eval () const |
Returns a pointer to evaluation input matrix. | |
const txeo::Matrix< T > * | y_eval () const |
Returns a pointer to evaluation output matrix. | |
const txeo::Matrix< T > * | x_test () const |
Returns a pointer to test input matrix. | |
const txeo::Matrix< T > * | y_test () const |
Returns a pointer to test output matrix. | |
size_t | x_dim () const |
Returns the number of input columns. | |
size_t | y_dim () const |
Returns the number of output columns. | |
size_t | row_size () const |
Returns the number of training rows. | |
bool | has_eval () const |
bool | has_test () const |
DataTable< T > | clone () const |
A container for managing training, evaluation, and test data splits.
T | The data type stored in the Matrix (e.g., float, double) |
This class handles the division of a dataset into training, evaluation, and test sets based on specified column indices and percentage splits.
Definition at line 24 of file DataTable.h.
|
default |
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | data, |
std::vector< size_t > | x_cols, | ||
std::vector< size_t > | y_cols | ||
) |
Construct a DataTable with specified feature/label columns.
data | Input matrix containing all data points |
x_cols | Column indices for feature columns |
y_cols | Column indices for label columns |
DataTableError |
Example Usage:
|
inline |
Definition at line 55 of file DataTable.h.
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | data, |
std::vector< size_t > | y_cols | ||
) |
Construct a DataTable with specified label columns. All the remaining columns are considered features.
data | Input matrix containing all data points |
y_cols | Column indices for label columns |
DataTableError |
Example Usage:
|
inline |
Definition at line 80 of file DataTable.h.
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | data, |
std::vector< size_t > | x_cols, | ||
std::vector< size_t > | y_cols, | ||
size_t | eval_percent | ||
) |
Construct a DataTable with specified feature/label columns and evaluation split percentage.
data | Input matrix containing all data points |
x_cols | Column indices for feature columns |
y_cols | Column indices for label columns |
eval_percent | Percentage of data reserved for evaluation ]0,100[ |
DataTableError |
Example Usage:
|
inline |
Definition at line 108 of file DataTable.h.
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | data, |
std::vector< size_t > | y_cols, | ||
size_t | eval_percent | ||
) |
Construct a DataTable with specified label columns and evaluation split percentage. All the remaining columns are considered x features.
data | Input matrix containing all data points |
y_cols | Column indices for label columns |
eval_percent | Percentage of data reserved for evaluation ]0,100[ |
DataTableError |
Example Usage:
|
inline |
Definition at line 136 of file DataTable.h.
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | data, |
std::vector< size_t > | x_cols, | ||
std::vector< size_t > | y_cols, | ||
size_t | eval_percent, | ||
size_t | eval_test | ||
) |
Construct a DataTable with specified feature/label columns and evaluation/test split percentages.
data | Input matrix containing all data points |
x_cols | Column indices for feature columns |
y_cols | Column indices for label columns |
eval_percent | Percentage of data reserved for evaluation ]0,100[ |
eval_test | Percentage of data reserved for test ]0,100[ |
DataTableError |
Example Usage:
|
inline |
Definition at line 165 of file DataTable.h.
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | data, |
std::vector< size_t > | y_cols, | ||
size_t | eval_percent, | ||
size_t | eval_test | ||
) |
Construct a DataTable with specified label columns and evaluation/test split percentages. All the remaining columns are considered x features.
data | Input matrix containing all data points |
y_cols | Column indices for label columns |
eval_percent | Percentage of data reserved for evaluation ]0,100[ |
eval_test | Percentage of data reserved for test ]0,100[ |
DataTableError |
Example Usage:
|
inline |
Definition at line 195 of file DataTable.h.
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | x_train, |
txeo::Matrix< T > && | y_train, | ||
txeo::Matrix< T > && | x_eval, | ||
txeo::Matrix< T > && | y_eval, | ||
txeo::Matrix< T > && | x_test, | ||
txeo::Matrix< T > && | y_test | ||
) |
|
inline |
Definition at line 225 of file DataTable.h.
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | x_train, |
txeo::Matrix< T > && | y_train, | ||
txeo::Matrix< T > && | x_eval, | ||
txeo::Matrix< T > && | y_eval | ||
) |
|
inline |
txeo::DataTable< T >::DataTable | ( | txeo::Matrix< T > && | x_train, |
txeo::Matrix< T > && | y_train | ||
) |
|
inline |
|
inline |
Definition at line 345 of file DataTable.h.
|
inline |
Definition at line 347 of file DataTable.h.
|
default |
|
default |
size_t txeo::DataTable< T >::row_size | ( | ) | const |
Returns the number of training rows.
size_t txeo::DataTable< T >::x_dim | ( | ) | const |
Returns the number of input columns.
const txeo::Matrix< T > * txeo::DataTable< T >::x_eval | ( | ) | const |
Returns a pointer to evaluation input matrix.
const txeo::Matrix< T > * txeo::DataTable< T >::x_test | ( | ) | const |
Returns a pointer to test input matrix.
|
inline |
Returns training inputs matrix.
Definition at line 287 of file DataTable.h.
size_t txeo::DataTable< T >::y_dim | ( | ) | const |
Returns the number of output columns.
const txeo::Matrix< T > * txeo::DataTable< T >::y_eval | ( | ) | const |
Returns a pointer to evaluation output matrix.
const txeo::Matrix< T > * txeo::DataTable< T >::y_test | ( | ) | const |
Returns a pointer to test output matrix.
|
inline |
Returns training outputs matrix.
Definition at line 294 of file DataTable.h.