Txeo v0.1
A Developer-Friendly TensorFlow C++ Wrapper
|
A normalizer for DataTable objects that handles feature scaling. More...
#include <DataTableNorm.h>
A normalizer for DataTable objects that handles feature scaling.
This class provides normalization functionality for machine learning datasets stored in DataTable format. It supports both Min-Max scaling and Z-Score standardization, computing normalization parameters from the training data.
T | The data type of the table elements (e.g., float, double) |
Definition at line 26 of file DataTableNorm.h.
|
default |
|
delete |
|
default |
|
default |
txeo::DataTableNorm< T >::DataTableNorm | ( | const txeo::DataTable< T > & | data, |
txeo::NormalizationType | type = txeo::NormalizationType::MIN_MAX |
||
) |
Construct a new DataTableNorm object with associated DataTable.
data | Reference to the DataTable containing training data |
type | Normalization type (MIN_MAX or Z_SCORE) |
DataTableNormError |
Example Usage:
|
inline |
Get the associated DataTable.
Example Usage:
Definition at line 68 of file DataTableNorm.h.
|
inline |
Normalize a copy of the input matrix.
x | Input matrix to normalize |
Example Usage:
Definition at line 127 of file DataTableNorm.h.
txeo::Matrix< T > txeo::DataTableNorm< T >::normalize | ( | txeo::Matrix< T > && | x | ) | const |
Normalize a matrix using rvalue semantics (move data)
x | Input matrix to normalize (will be moved from) |
DataTableNormError | If normalization parameters not initialized |
Example Usage:
|
delete |
|
default |
void txeo::DataTableNorm< T >::set_data_table | ( | const txeo::DataTable< T > & | data | ) |
Set a new DataTable for normalization.
data | New DataTable to use for normalization parameters |
DataTableNormError | If DataTable is invalid |
Example Usage:
|
inline |
Get the current normalization type.
Example Usage:
Definition at line 96 of file DataTableNorm.h.
txeo::Matrix< T > txeo::DataTableNorm< T >::x_eval_normalized | ( | ) |
Get normalized evaluation data.
Example Usage:
txeo::Matrix< T > txeo::DataTableNorm< T >::x_test_normalized | ( | ) |
Get normalized test data.
Example Usage:
txeo::Matrix< T > txeo::DataTableNorm< T >::x_train_normalized | ( | ) |
Get normalized training data.
DataTableNormError | If training data not available |
Example Usage: