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=
"");
113 bool setInputAndTargetDimensions(
const UINT numInputDimensions,
const UINT numTargetDimensions);
123 bool setDatasetName(
const std::string &datasetName);
132 bool setInfoText(
const std::string &infoText);
149 bool removeLastSample();
159 bool reserve(
const UINT N);
179 bool enableExternalRangeScaling(
const bool useExternalRanges);
188 bool scale(
const Float minTarget,
const Float maxTarget);
205 bool save(
const std::string &filename)
const;
215 bool load(
const std::string &filename);
223 bool saveDatasetToFile(
const std::string &filename)
const;
231 bool loadDatasetFromFile(
const std::string &filename);
240 bool saveDatasetToCSVFile(
const std::string &filename)
const;
252 bool loadDatasetFromCSVFile(
const std::string &filename,
const UINT numInputDimensions,
const UINT numTargetDimensions);
254 bool printStats()
const;
270 GRT_DEPRECATED_MSG(
"partition(...) is deprecated, use split(...) instead",
RegressionData partition(
const UINT trainingSizePercentage) );
287 bool spiltDataIntoKFolds(
const UINT K);
307 UINT removeDuplicateSamples();
323 std::string getStatsAsString()
const;
368 std::string datasetName;
369 std::string infoText;
370 UINT numInputDimensions;
371 UINT numTargetDimensions;
372 UINT totalNumSamples;
374 bool crossValidationSetup;
375 bool useExternalRanges;
388 #endif //GRT_REGRESSION_DATA_HEADER
std::string getDatasetName() const
UINT getNumInputDimensions() const
const RegressionSample & operator[](const UINT &i) const
UINT getNumTargetDimensions() const
This class stores the input vector and target vector for a single labelled regression instance...
Vector< RegressionSample > getData() const
RegressionSample & operator[](const UINT &i)
std::string getInfoText() const
UINT getNumSamples() const