#ifndef PLATFORM_UTILS_H #define PLATFORM_UTILS_H #include #include #include #include #include #include "ArffFiles.h" #include "CPPFImdlp.h" using namespace std; const string PATH = "../../data/"; bool file_exists(const std::string& name); pair, map> discretize(vector& X, mdlp::labels_t& y, vector features); pair> discretizeTorch(torch::Tensor& X, torch::Tensor& y, vector features); tuple>, vector, vector, string, map>> loadFile(string name); tuple, string> loadDataset(string name, bool discretize, bool class_last); map> get_states(torch::Tensor& X, torch::Tensor& y, vector features, string className); #endif //PLATFORM_UTILS_H