#ifndef ARFFFILES_H #define ARFFFILES_H #include #include class ArffFiles { private: std::vector lines; std::vector> attributes; std::string className; std::string classType; std::vector> X; std::vector y; void generateDataset(int); void loadCommon(std::string); public: ArffFiles(); void load(const std::string&, bool = true); void load(const std::string&, const std::string&); std::vector getLines() const; unsigned long int getSize() const; std::string getClassName() const; std::string getClassType() const; static std::string trim(const std::string&); std::vector>& getX(); std::vector& getY(); std::vector> getAttributes() const; static std::vector factorize(const std::vector& labels_t); }; #endif