SG++-Doxygen-Documentation
|
SampleProvider is an abstraction for object that provide sample data from various sources for example datasets from files (ARFF, CSV) or synthetic datasets generated by sampling functions ( Friedmann datasets). More...
#include <SampleProvider.hpp>
Public Member Functions | |
virtual SampleProvider * | clone () const =0 |
Clone pattern for polymorphic cloning (mainly interresting for copy constructors). More... | |
virtual Dataset * | getAllSamples ()=0 |
Asks to return all available samples. More... | |
virtual size_t | getDim () const =0 |
Returns the maximal dimensionality of the data. More... | |
virtual Dataset * | getNextSamples (size_t howMany)=0 |
Lets the user request a certain amount of samples. More... | |
virtual size_t | getNumSamples () const =0 |
Returns the number of samples availible or throws if not possible. More... | |
SampleProvider & | operator= (const SampleProvider &rhs)=default |
SampleProvider & | operator= (SampleProvider &&rhs)=default |
virtual void | reset ()=0 |
Resets the state of the sample provider (e.g. More... | |
SampleProvider ()=default | |
SampleProvider (const SampleProvider &rhs)=default | |
SampleProvider (SampleProvider &&rhs)=default | |
virtual | ~SampleProvider ()=default |
SampleProvider is an abstraction for object that provide sample data from various sources for example datasets from files (ARFF, CSV) or synthetic datasets generated by sampling functions ( Friedmann datasets).
|
default |
|
default |
|
default |
|
virtualdefault |
|
pure virtual |
Clone pattern for polymorphic cloning (mainly interresting for copy constructors).
Implemented in sgpp::datadriven::ArffFileSampleProvider, and sgpp::datadriven::CSVFileSampleProvider.
|
pure virtual |
Asks to return all available samples.
This functionality is designed for returning all available samples from an entire file.
Implemented in sgpp::datadriven::FileSampleDecorator, sgpp::datadriven::ArffFileSampleProvider, and sgpp::datadriven::CSVFileSampleProvider.
|
pure virtual |
Returns the maximal dimensionality of the data.
Implemented in sgpp::datadriven::FileSampleDecorator, sgpp::datadriven::ArffFileSampleProvider, and sgpp::datadriven::CSVFileSampleProvider.
Referenced by python.uq.dists.SGDEdist.SGDEdist::__str__(), and python.uq.dists.KDEDist.KDEDist::getBandwidths().
|
pure virtual |
Lets the user request a certain amount of samples.
This functionality is is designed for streaming algorithms where data is processed in batches.
howMany | number requested amount of samples. The amount of actually provided samples can be smaller, if there is not sufficient data. |
Implemented in sgpp::datadriven::FileSampleDecorator, sgpp::datadriven::ArffFileSampleProvider, and sgpp::datadriven::CSVFileSampleProvider.
|
pure virtual |
Returns the number of samples availible or throws if not possible.
Implemented in sgpp::datadriven::FileSampleDecorator, sgpp::datadriven::ArffFileSampleProvider, and sgpp::datadriven::CSVFileSampleProvider.
|
default |
|
default |
|
pure virtual |
Resets the state of the sample provider (e.g.
to start a new epoch)
Implemented in sgpp::datadriven::ArffFileSampleProvider, and sgpp::datadriven::CSVFileSampleProvider.