174 std::vector<std::function<T(
const T &)>> _funcs;
179 using std::runtime_error::runtime_error;
A container for managing training, evaluation, and test data splits.
DataTable< T > clone() const
A normalizer for DataTable objects that handles feature scaling.
DataTableNorm(const DataTableNorm &)=delete
txeo::Matrix< T > x_eval_normalized()
Get normalized evaluation data.
txeo::Matrix< T > x_test_normalized()
Get normalized test data.
DataTableNorm(const txeo::DataTable< T > &data, txeo::NormalizationType type=txeo::NormalizationType::MIN_MAX)
Construct a new DataTableNorm object with associated DataTable.
DataTableNorm & operator=(DataTableNorm &&)=default
txeo::Matrix< T > normalize(const txeo::Matrix< T > &x) const
Normalize a copy of the input matrix.
const txeo::DataTable< T > & data_table() const
Get the associated DataTable.
DataTableNorm(DataTableNorm &&)=default
DataTableNorm & operator=(const DataTableNorm &)=delete
txeo::Matrix< T > x_train_normalized()
Get normalized training data.
txeo::Matrix< T > normalize(txeo::Matrix< T > &&x) const
Normalize a matrix using rvalue semantics (move data)
txeo::NormalizationType type() const
Get the current normalization type.
void set_data_table(const txeo::DataTable< T > &data)
Set a new DataTable for normalization.
NormalizationType
Normalization types to be used in normalization functions.