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 =
"");
108 bool setNumDimensions(
const UINT numDimensions);
118 bool setDatasetName(
const std::string datasetName);
127 bool setInfoText(
const std::string infoText);
143 bool removeLastSample();
153 bool reserve(
const UINT N);
163 bool setExternalRanges(
const Vector< MinMax > &externalRanges,
const bool useExternalRanges =
false);
172 bool enableExternalRangeScaling(
const bool useExternalRanges);
181 bool scale(
const Float minTarget,
const Float maxTarget);
191 bool scale(
const Vector<MinMax> &ranges,
const Float minTarget,
const Float maxTarget);
201 bool save(
const std::string &filename)
const;
211 bool load(
const std::string &filename);
219 bool saveDatasetToFile(
const std::string &filename)
const;
227 bool loadDatasetFromFile(
const std::string &filename);
237 bool saveDatasetToCSVFile(
const std::string &filename)
const;
248 bool loadDatasetFromCSVFile(
const std::string &filename);
255 GRT_DEPRECATED_MSG(
"partition(...) is deprecated, use split(...) instead",
UnlabelledData partition(
const UINT partitionPercentage) );
281 bool spiltDataIntoKFolds(
const UINT K);
320 std::string getStatsAsString()
const;
365 std::string datasetName;
366 std::string infoText;
368 UINT totalNumSamples;
370 bool crossValidationSetup;
371 bool useExternalRanges;
385 #endif //GRT_UNLABLELLED_CLASSIFICATION_DATA_HEADER
std::string getDatasetName() const
std::string getInfoText() const
UINT getNumDimensions() const
UINT getNumSamples() const