A LabeledDataDistribution defines a supervised learning problem. More...
#include <shark/Data/DataDistribution.h>
Public Member Functions | |
virtual | ~LabeledDataDistribution () |
Virtual destructor. | |
virtual void | draw (InputType &input, LabelType &label) const =0 |
Generates a single pair of input and label. | |
std::pair< InputType, LabelType > | operator() () |
LabeledData< InputType, LabelType > | generateDataset (std::size_t size, std::size_t maximumBatchSize) const |
Generates a dataset with samples from from the distribution. | |
LabeledData< InputType, LabelType > | generateDataset (std::size_t size) const |
Generates a data set with samples from from the distribution. | |
A LabeledDataDistribution defines a supervised learning problem.
Definition at line 108 of file DataDistribution.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 112 of file DataDistribution.h.
|
pure virtual |
Generates a single pair of input and label.
input | the generated input |
label | the generated label |
Implemented in shark::Wave, shark::Chessboard, shark::PamiToy, shark::CircleInSquare, and shark::DiagonalWithCircle.
Referenced by shark::LabeledDataDistribution< InputType, LabelType >::generateDataset(), and shark::LabeledDataDistribution< InputType, LabelType >::operator()().
|
inline |
Generates a data set with samples from from the distribution.
size | the number of samples in the dataset |
Definition at line 145 of file DataDistribution.h.
References shark::LabeledDataDistribution< InputType, LabelType >::generateDataset().
|
inline |
Generates a dataset with samples from from the distribution.
size | the number of samples in the dataset |
maximumBatchSize | the maximum size of a batch |
Definition at line 130 of file DataDistribution.h.
References shark::createLabeledDataFromRange(), and shark::LabeledDataDistribution< InputType, LabelType >::draw().
Referenced by shark::LabeledDataDistribution< InputType, LabelType >::generateDataset(), main(), main(), and run_one_trial().
|
inline |
Definition at line 120 of file DataDistribution.h.
References shark::LabeledDataDistribution< InputType, LabelType >::draw().