32 #ifndef GRT_REGRESSION_DATA_HEADER
33 #define GRT_REGRESSION_DATA_HEADER
35 #include "../Util/GRTTypedefs.h"
36 #include "VectorFloat.h"
53 RegressionData(
const UINT numInputDimensions=0,
const UINT numTargetDimensions=0,
const std::string datasetName=
"NOT_SET",
const std::string infoText=
"");
188 bool scale(
const Float minTarget,
const Float maxTarget);
205 bool save(
const std::string &filename)
const;
215 bool load(
const std::string &filename);
252 bool loadDatasetFromCSVFile(
const std::string &filename,
const UINT numInputDimensions,
const UINT numTargetDimensions);
254 bool printStats()
const;
300 UINT removeDuplicateSamples();
316 std::string getStatsAsString()
const;
361 std::string datasetName;
362 std::string infoText;
363 UINT numInputDimensions;
364 UINT numTargetDimensions;
365 UINT totalNumSamples;
367 bool crossValidationSetup;
368 bool useExternalRanges;
381 #endif //GRT_REGRESSION_DATA_HEADER
bool merge(const RegressionData ®ressionData)
bool loadDatasetFromCSVFile(const std::string &filename, const UINT numInputDimensions, const UINT numTargetDimensions)
bool save(const std::string &filename) const
Vector< MinMax > getInputRanges() const
std::string getDatasetName() const
RegressionData & operator=(const RegressionData &rhs)
bool load(const std::string &filename)
RegressionData getTrainingFoldData(const UINT foldIndex) const
bool setInfoText(const std::string &infoText)
UINT getNumInputDimensions() const
bool setExternalRanges(const Vector< MinMax > &externalInputRanges, const Vector< MinMax > &externalTargetRanges, const bool useExternalRanges)
const RegressionSample & operator[](const UINT &i) const
bool setInputAndTargetDimensions(const UINT numInputDimensions, const UINT numTargetDimensions)
Vector< MinMax > getTargetRanges() const
bool scale(const Float minTarget, const Float maxTarget)
UINT getNumTargetDimensions() const
RegressionData(const UINT numInputDimensions=0, const UINT numTargetDimensions=0, const std::string datasetName="NOT_SET", const std::string infoText="")
bool saveDatasetToCSVFile(const std::string &filename) const
This class stores the input vector and target vector for a single labelled regression instance...
bool setDatasetName(const std::string &datasetName)
bool saveDatasetToFile(const std::string &filename) const
Vector< RegressionSample > getData() const
RegressionSample & operator[](const UINT &i)
RegressionData getTestFoldData(const UINT foldIndex) const
bool loadDatasetFromFile(const std::string &filename)
bool enableExternalRangeScaling(const bool useExternalRanges)
RegressionData partition(const UINT trainingSizePercentage)
bool addSample(const VectorFloat &inputVector, const VectorFloat &targetVector)
bool reserve(const UINT N)
std::string getInfoText() const
bool spiltDataIntoKFolds(const UINT K)
UINT getNumSamples() const