15 std::cerr << std::endl;
21 std::map<std::string, std::uint8_t> dataTypeMap = { {
"i32",
i32 }, {
"i64",
i64 }, {
"f32",
f32 }, {
"f64",
f64 } };
24 return dataTypeMap.at(data);
26 catch (
const std::out_of_range &missing_key)
32 void load_from_csv(std::string data, std::filesystem::path file_path, std::uint64_t max_loaded_size)
35 switch (data_load_type_evaluated)
static ExternalDataset< T > loadFromCSV(const std::string &filename, std::uint64_t max_loaded_size=0)
Loads a dataset from an external csv file that follows the defined structure.
void load_from_csv(std::string data, std::filesystem::path file_path, std::uint64_t max_loaded_size)
void signal_error(const char *msg, bool usage)
std::uint8_t get_type_from_data(std::string data)
constexpr const char * check_usage