22 explicit TensorIO(
const std::filesystem::path &path,
char separator =
',')
23 : _path(std::
move(path)), _separator(separator) {};
34 requires(std::is_floating_point_v<T>)
50 char separator =
',') {
56 requires(std::is_floating_point_v<T>)
59 const std::filesystem::path &path,
char separator =
',') {
65 std::filesystem::path _path;
75 using std::runtime_error::runtime_error;
A container for managing training, evaluation, and test data splits.
Exceptions concerning txeo::TensorIO.
This class is deprecated. Please use class txeo::MatrixIO.
static txeo::Tensor< T > read_textfile(const std::filesystem::path &path, char separator=',', bool has_header=false)
txeo::Tensor< T > read_text_file(bool has_header=false) const
static void write_textfile(const txeo::Tensor< T > &tensor, const std::filesystem::path &path, char separator=',')
void write_text_file(const txeo::Tensor< T > &tensor) const
TensorIO(const std::filesystem::path &path, char separator=',')
static void write_textfile(const txeo::Tensor< T > &tensor, size_t precision, const std::filesystem::path &path, char separator=',')
void write_text_file(const txeo::Tensor< T > &tensor, size_t precision) const