SG++-Doxygen-Documentation
sgpp::datadriven::Dataset Class Reference

#include <Dataset.hpp>

Inheritance diagram for sgpp::datadriven::Dataset:
sgpp::datadriven::SortedDataset

Public Member Functions

 Dataset ()
 Constructs an empty dataset (zero size). More...
 
 Dataset (size_t numberInstances, size_t dimension)
 Constructs an empty dataset with given size. More...
 
sgpp::base::DataMatrixgetData ()
 
const sgpp::base::DataMatrixgetData () const
 
size_t getDimension () const
 
size_t getNumberInstances () const
 
sgpp::base::DataVectorgetTargets ()
 
const sgpp::base::DataVectorgetTargets () const
 

Protected Attributes

sgpp::base::DataMatrix data
 
size_t dimension
 
size_t numberInstances
 
sgpp::base::DataVector targets
 

Constructor & Destructor Documentation

◆ Dataset() [1/2]

sgpp::datadriven::Dataset::Dataset ( )

Constructs an empty dataset (zero size).

◆ Dataset() [2/2]

sgpp::datadriven::Dataset::Dataset ( size_t  numberInstances,
size_t  dimension 
)

Constructs an empty dataset with given size.

Parameters
numberInstancesnumber of instances in the dataset
dimensionnumber of dimensions in the dataset

Member Function Documentation

◆ getData() [1/2]

sgpp::base::DataMatrix & sgpp::datadriven::Dataset::getData ( )
Returns
training data of the dataset

References getData().

Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::assembleNextBatchData(), sgpp::datadriven::RosenblattTransformation::doInverseTransformation(), sgpp::datadriven::LearnerSGDEOnOffParallel::doRefinementForAll(), sgpp::datadriven::RosenblattTransformation::doTransformation(), sgpp::datadriven::ModelFittingClassification::fit(), sgpp::datadriven::ModelFittingDensityEstimationCG::fit(), sgpp::datadriven::ModelFittingDensityEstimationOnOff::fit(), sgpp::datadriven::LearnerSGDEOnOffParallel::getAccuracy(), sgpp::datadriven::SortedDataset::getData(), getData(), sgpp::datadriven::LearnerSGDEOnOffParallel::getError(), hpx_main(), sgpp::datadriven::RosenblattTransformation::initialize(), sgpp::datadriven::MetaLearner::learnAndTestString(), sgpp::datadriven::MetaLearner::learnReferenceString(), sgpp::datadriven::MetaLearner::learnString(), main(), sgpp::datadriven::MortonOrder::MortonOrder(), sgpp::datadriven::MortonOrder::orderDataset(), sgpp::datadriven::ARFFTools::readARFF(), sgpp::datadriven::CSVTools::readCSV(), sgpp::datadriven::CSVFileSampleProvider::readString(), sgpp::datadriven::ArffFileSampleProvider::readString(), sgpp::datadriven::ModelFittingLeastSquares::reset(), sgpp::datadriven::MortonOrder::restoreDataset(), sgpp::datadriven::LearnerSGDEOnOffParallel::splitBatchIntoClasses(), sgpp::datadriven::Scorer::test(), sgpp::datadriven::ModelFittingClassification::update(), sgpp::datadriven::ModelFittingDensityEstimationOnOff::update(), and sgpp::datadriven::ModelFittingDensityEstimationCG::update().

◆ getData() [2/2]

const sgpp::base::DataMatrix & sgpp::datadriven::Dataset::getData ( ) const
Returns
training data of the dataset

References data.

◆ getDimension()

◆ getNumberInstances()

size_t sgpp::datadriven::Dataset::getNumberInstances ( ) const
Returns
number of instances in the dataset

References numberInstances.

Referenced by sgpp::datadriven::LearnerSGDEOnOffParallel::assembleNextBatchData(), sgpp::datadriven::LearnerSGDEOnOffParallel::assignBatchToWorker(), sgpp::datadriven::RosenblattTransformation::doInverseTransformation(), sgpp::datadriven::RosenblattTransformation::doTransformation(), sgpp::datadriven::LearnerSGDEOnOffParallel::getAccuracy(), sgpp::datadriven::ArffFileSampleProvider::getAllSamples(), sgpp::datadriven::CSVFileSampleProvider::getAllSamples(), sgpp::datadriven::LearnerSGDEOnOffParallel::getError(), sgpp::datadriven::ArffFileSampleProvider::getNumSamples(), sgpp::datadriven::CSVFileSampleProvider::getNumSamples(), hpx_main(), sgpp::datadriven::RosenblattTransformation::initialize(), sgpp::datadriven::SparseGridMinerCrossValidation::learn(), sgpp::datadriven::SparseGridMinerSplitting::learn(), sgpp::datadriven::MetaLearner::learnAndTestString(), sgpp::datadriven::MetaLearner::learnReferenceString(), sgpp::datadriven::MetaLearner::learnString(), main(), sgpp::datadriven::CSVFileSampleProvider::readString(), sgpp::datadriven::ArffFileSampleProvider::readString(), sgpp::datadriven::SortedDataset::SortedDataset(), sgpp::datadriven::LearnerSGDEOnOffParallel::splitBatchIntoClasses(), sgpp::datadriven::Scorer::test(), sgpp::datadriven::LearnerSGDEOnOffParallel::train(), sgpp::datadriven::LearnerSGDEOnOffParallel::trainParallel(), sgpp::datadriven::ModelFittingClassification::update(), and sgpp::datadriven::LearnerSGDEOnOffParallel::workBatch().

◆ getTargets() [1/2]

◆ getTargets() [2/2]

const sgpp::base::DataVector & sgpp::datadriven::Dataset::getTargets ( ) const
Returns
classes data of the dataset

References targets.

Member Data Documentation

◆ data

◆ dimension

size_t sgpp::datadriven::Dataset::dimension
protected

Referenced by getDimension().

◆ numberInstances

size_t sgpp::datadriven::Dataset::numberInstances
protected

◆ targets


The documentation for this class was generated from the following files: