A LabeledDataDistribution defines a supervised learning problem. More...
#include <shark/Data/DataDistribution.h>
Public Member Functions | |
| virtual | ~LabeledDataDistribution () |
| Virtual destructor. More... | |
| virtual void | draw (InputType &input, LabelType &label) const =0 |
| Generates a single pair of input and label. More... | |
| 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. More... | |
| LabeledData< InputType, LabelType > | generateDataset (std::size_t size) const |
| Generates a data set with samples from from the distribution. More... | |
A LabeledDataDistribution defines a supervised learning problem.
Definition at line 120 of file DataDistribution.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 124 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::DiagonalWithCircle, shark::CircleInSquare, shark::PamiToy, shark::Wave, and shark::Chessboard.
|
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 142 of file DataDistribution.h.
Referenced by main(), and run_one_trial().
|
inline |
Generates a data set with samples from from the distribution.
| size | the number of samples in the dataset |
Definition at line 173 of file DataDistribution.h.
|
inline |
Definition at line 132 of file DataDistribution.h.