#ifndef DATASETS_H #define DATASETS_H #include "Dataset.h" namespace platform { class Datasets { private: std::string path; fileType_t fileType; std::string sfileType; std::map> datasets; bool discretize; void load(); // Loads the list of datasets public: explicit Datasets(bool discretize, std::string sfileType) : discretize(discretize), sfileType(sfileType) { load(); }; std::vector getNames(); std::vector getFeatures(const std::string& name) const; int getNSamples(const std::string& name) const; std::string getClassName(const std::string& name) const; int getNClasses(const std::string& name); std::vector getClassesCounts(const std::string& name) const; std::map> getStates(const std::string& name) const; std::pair>&, std::vector&> getVectors(const std::string& name); std::pair>&, std::vector&> getVectorsDiscretized(const std::string& name); std::pair getTensors(const std::string& name); bool isDataset(const std::string& name) const; void loadDataset(const std::string& name) const; }; }; #endif