163 const std::vector<size_t> &
cols);
184 const std::vector<size_t> &
cols);
205 const std::vector<size_t> &
rows);
217 using std::runtime_error::runtime_error;
A container for managing training, evaluation, and test data splits.
Exceptions concerning txeo::Tensor.
A utility class for partitioning tensors.
static txeo::Tensor< T > & increase_dimension_by(txeo::Tensor< T > &tensor, size_t axis, T value)
Increments the dimension of the tensor at the specified axis (in-place)
TensorPart & operator=(const TensorPart &)=delete
static txeo::Tensor< T > slice(const txeo::Tensor< T > &tensor, size_t first_axis_begin, size_t first_axis_end)
Returns a view of the tensor from a specified range of dimensions of the first axis.
static txeo::Matrix< T > sub_matrix_cols_exclude(const txeo::Matrix< T > &matrix, const std::vector< size_t > &cols)
Creates a submatrix excluding the specified columns.
TensorPart(const TensorPart &)=delete
static txeo::Tensor< T > increase_dimension(const txeo::Tensor< T > &tensor, size_t axis, T value)
Increments the dimension of the tensor at the specified axis.
static txeo::Matrix< T > sub_matrix_cols(const txeo::Matrix< T > &matrix, const std::vector< size_t > &cols)
Creates a submatrix containing specified columns.
static txeo::Matrix< T > sub_matrix_rows(const txeo::Matrix< T > &matrix, const std::vector< size_t > &rows)
Creates a submatrix containing specified rows.
TensorPart & operator=(TensorPart &&)=delete
static std::vector< txeo::Tensor< T > > unstack(const txeo::Tensor< T > &tensor, size_t axis)
Unstacks a tensor along a specified axis into a list of tensors.
TensorPart(TensorPart &&)=delete