#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); vector discretizeDataset(vector& X, mdlp::labels_t& y); pair>> discretizeTorch(torch::Tensor& X, torch::Tensor& y, vector& features, string className); tuple>, vector, vector, string, map>> loadFile(string name); tuple, string, map>> loadDataset(string path, string name, bool class_last, bool discretize_dataset); map> get_states(vector& features, string className, map& maxes); #endif //PLATFORM_UTILS_H