31 #ifndef GRT_UNLABLELLED_DATA_HEADER
32 #define GRT_UNLABLELLED_DATA_HEADER
34 #include "../Util/GRTCommon.h"
49 UnlabelledData(
const UINT numDimensions = 0,
const std::string datasetName =
"NOT_SET",
const std::string infoText =
"");
181 bool scale(
const Float minTarget,
const Float maxTarget);
201 bool save(
const std::string &filename)
const;
211 bool load(
const std::string &filename);
358 std::string datasetName;
359 std::string infoText;
361 UINT totalNumSamples;
363 bool crossValidationSetup;
364 bool useExternalRanges;
378 #endif //GRT_UNLABLELLED_CLASSIFICATION_DATA_HEADER
bool loadDatasetFromCSVFile(const std::string &filename)
bool scale(const Float minTarget, const Float maxTarget)
bool addSample(const VectorFloat &sample)
std::string getDatasetName() const
bool load(const std::string &filename)
MatrixFloat getDataAsMatrixFloat() const
std::string getInfoText() const
UINT getNumDimensions() const
bool setExternalRanges(const Vector< MinMax > &externalRanges, const bool useExternalRanges=false)
UINT getNumSamples() const
UnlabelledData & operator=(const UnlabelledData &rhs)
bool reserve(const UINT N)
Vector< VectorFloat > getData() const
UnlabelledData getTestFoldData(const UINT foldIndex) const
UnlabelledData(const UINT numDimensions=0, const std::string datasetName="NOT_SET", const std::string infoText="")
bool save(const std::string &filename) const
bool saveDatasetToFile(const std::string &filename) const
bool setNumDimensions(const UINT numDimensions)
bool enableExternalRangeScaling(const bool useExternalRanges)
VectorFloat & operator[](const UINT &i)
UnlabelledData partition(const UINT partitionPercentage)
bool setInfoText(const std::string infoText)
bool saveDatasetToCSVFile(const std::string &filename) const
Vector< MinMax > getRanges() const
UnlabelledData getTrainingFoldData(const UINT foldIndex) const
MatrixDouble getDataAsMatrixDouble() const
bool merge(const UnlabelledData &unlabelledData)
bool setDatasetName(const std::string datasetName)
bool spiltDataIntoKFolds(const UINT K)
bool loadDatasetFromFile(const std::string &filename)
std::string getStatsAsString() const