SG++
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

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

Constructs an empty dataset (zero size).

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

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

References data.

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

References targets.

Member Data Documentation

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

Referenced by getDimension().

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

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