31 #ifndef GRT_UNLABLELLED_DATA_HEADER
32 #define GRT_UNLABLELLED_DATA_HEADER
34 #include "../Util/GRTCommon.h"
49 UnlabelledData(
const UINT numDimensions = 0,
const string datasetName =
"NOT_SET",
const string infoText =
"");
89 const inline VectorDouble&
operator[] (
const UINT &i)
const{
135 bool addSample(
const VectorDouble &sample);
162 bool setExternalRanges(
const vector< MinMax > &externalRanges,
const bool useExternalRanges =
false);
178 bool scale(
const double minTarget,
const double maxTarget);
185 bool scale(
const vector<MinMax> &ranges,
const double minTarget,
const double maxTarget);
195 bool save(
const string &filename)
const;
205 bool load(
const string &filename);
335 vector< VectorDouble >
getData()
const;
348 UINT totalNumSamples;
350 bool crossValidationSetup;
351 bool useExternalRanges;
352 vector< MinMax > externalRanges;
354 vector< VectorDouble > data;
355 vector< vector< UINT > > crossValidationIndexs;
365 #endif //GRT_UNLABLELLED_CLASSIFICATION_DATA_HEADER
UINT getNumSamples() const
UnlabelledData & operator=(const UnlabelledData &rhs)
bool enableExternalRangeScaling(const bool useExternalRanges)
bool addSample(const VectorDouble &sample)
VectorDouble & operator[](const UINT &i)
bool merge(const UnlabelledData &unlabelledData)
bool scale(const double minTarget, const double maxTarget)
UnlabelledData(const UINT numDimensions=0, const string datasetName="NOT_SET", const string infoText="")
string getStatsAsString() const
bool setExternalRanges(const vector< MinMax > &externalRanges, const bool useExternalRanges=false)
bool loadDatasetFromCSVFile(const string &filename)
UnlabelledData getTestFoldData(const UINT foldIndex) const
MatrixDouble getDataAsMatrixDouble() const
bool saveDatasetToCSVFile(const string &filename) const
bool load(const string &filename)
bool saveDatasetToFile(const string &filename) const
bool setDatasetName(const string datasetName)
string getInfoText() const
bool spiltDataIntoKFolds(const UINT K)
UnlabelledData getTrainingFoldData(const UINT foldIndex) const
string getDatasetName() const
UINT getNumDimensions() const
bool loadDatasetFromFile(const string &filename)
bool reserve(const UINT N)
UnlabelledData partition(const UINT partitionPercentage)
bool setNumDimensions(const UINT numDimensions)
bool save(const string &filename) const
vector< MinMax > getRanges() const
vector< VectorDouble > getData() const
bool setInfoText(const string infoText)