A DataDistribution defines an unsupervised learning problem. More...
#include <shark/Data/DataDistribution.h>
Public Member Functions | |
virtual | ~DataDistribution () |
Virtual destructor. More... | |
virtual void | draw (InputType &input) const =0 |
Generates a single pair of input and label. More... | |
InputType | operator() () |
UnlabeledData< InputType > | generateDataset (std::size_t size, std::size_t maximumBatchSize) const |
Generates a data set with samples from from the distribution. More... | |
UnlabeledData< InputType > | generateDataset (std::size_t size) const |
Generates a data set with samples from from the distribution. More... | |
A DataDistribution defines an unsupervised learning problem.
Definition at line 57 of file DataDistribution.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 61 of file DataDistribution.h.
|
pure virtual |
Generates a single pair of input and label.
input | the generated input |
Implemented in shark::ImagePatches, and shark::NormalDistributedPoints.
Referenced by shark::DataDistribution< RealVector >::generateDataset(), shark::LabeledDataDistribution< RealVector, unsigned int >::generateDataset(), shark::DataDistribution< RealVector >::operator()(), shark::LabeledDataDistribution< RealVector, unsigned int >::operator()(), shark::DataDistribution< RealVector >::~DataDistribution(), and shark::LabeledDataDistribution< RealVector, unsigned int >::~LabeledDataDistribution().
|
inline |
Generates a data set with samples from from the distribution.
size | the number of samples in the dataset |
maximumBatchSize | the maximum size of a batch |
Definition at line 79 of file DataDistribution.h.
Referenced by shark::DataDistribution< RealVector >::generateDataset(), and shark::LabeledDataDistribution< RealVector, unsigned int >::generateDataset().
|
inline |
Generates a data set with samples from from the distribution.
size | the number of samples in the dataset |
Definition at line 93 of file DataDistribution.h.
|
inline |
Definition at line 69 of file DataDistribution.h.