252 static std::vector<std::function<
T(
const T &)>>
382 std::function<
void(
const std::vector<T> &,
const std::vector<T *> &)>
func);
383 static std::vector<std::function<
T(
const T &)>>
385 std::function<
void(
const std::vector<T> &,
T &,
T &)>
func);
387 static void min_max_normalize(
const std::vector<T> &
values,
const std::vector<T *> &
adresses);
388 static void z_score_normalize(
const std::vector<T> &
values,
const std::vector<T *> &
adresses);
390 static void new_min_max_normalize(
const std::vector<T> &
values,
393 static void new_z_score_normalize(
const std::vector<T> &
values,
400 static void min_max_subtractor_denominator(
const std::vector<T> &
values,
T &
subtractor,
403 static void z_score_subtractor_denominator(
const std::vector<T> &
values,
T &
subtractor,
413 using std::runtime_error::runtime_error;
A container for managing training, evaluation, and test data splits.
Exceptions concerning txeo::TensorOp.
A utility class for common math functions on tensors.
static txeo::Tensor< T > & square_by(txeo::Tensor< T > &tensor)
Computes the element-wise square of a tensor in-place.
static txeo::Tensor< T > power_elem(const txeo::Tensor< T > &tensor, const T &exponent)
Returns the element-wise potentiation of a tensor.
static txeo::Tensor< T > normalize(const txeo::Tensor< T > &tensor, size_t axis, txeo::NormalizationType type)
Creates a normalized copy of the input tensor along a specified axis.
TensorFunc & operator=(TensorFunc &&)=delete
static txeo::Tensor< T > normalize(const txeo::Tensor< T > &tensor, txeo::NormalizationType type)
Creates a normalized copy of the entire tensor (global normalization)
static std::vector< std::function< T(const T &)> > make_normalize_functions(const txeo::Tensor< T > &tensor, size_t axis, txeo::NormalizationType type)
Construct the normalization functions for each dimension of the specified axis.
static txeo::Tensor< T > sqrt(const txeo::Tensor< T > &tensor)
Computes the element-wise square root of a tensor.
static txeo::Tensor< T > permute(const txeo::Tensor< T > &tensor, const std::vector< size_t > &axes)
Permutes the axes of a tensor.
static txeo::Matrix< T > & transpose_by(txeo::Matrix< T > &matrix)
Transposes a matrix in-place.
TensorFunc(const TensorFunc &)=delete
static txeo::Tensor< T > & sqrt_by(txeo::Tensor< T > &tensor)
Computes the element-wise square root of a tensor in-place.
static Tensor< T > & normalize_by(txeo::Tensor< T > &tensor, txeo::NormalizationType type)
Normalizes the entire tensor in-place (global normalization)
static txeo::Tensor< T > & abs_by(txeo::Tensor< T > &tensor)
Computes the element-wise absolute value of a tensor in-place.
static txeo::Matrix< T > transpose(const txeo::Matrix< T > &matrix)
Transposes a matrix.
TensorFunc & operator=(const TensorFunc &)=default
static txeo::Tensor< T > & normalize_by(txeo::Tensor< T > &tensor, size_t axis, txeo::NormalizationType type)
Normalizes the input tensor along a specified axis in-place.
static txeo::Tensor< T > & power_elem_by(txeo::Tensor< T > &tensor, const T &exponent)
Performs element-wise potentiation of the tensor (in-place)
static std::function< T(const T &)> make_normalize_function(const txeo::Tensor< T > &tensor, txeo::NormalizationType type)
Construct the normalization function for the elements of the specified tensor.
static txeo::Tensor< T > square(const txeo::Tensor< T > &tensor)
Computes the element-wise square of a tensor.
static txeo::Tensor< T > abs(const txeo::Tensor< T > &tensor)
Computes the element-wise absolute value of a tensor.
TensorFunc(TensorFunc &&)=delete
static txeo::Tensor< T > & permute_by(txeo::Tensor< T > &tensor, const std::vector< size_t > &axes)
Permutes the axes of a tensor in-place.
static txeo::Matrix< T > compute_gram_matrix(const txeo::Matrix< T > &matrix)
Computes the Gram matrix ( ) of the input matrix.
NormalizationType
Normalization types to be used in normalization functions.