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