#include <shark/Data/DataDistribution.h>
 Inheritance diagram for shark::PamiToy:
 Inheritance diagram for shark::PamiToy:| Public Member Functions | |
| PamiToy (unsigned int size_useful=5, unsigned int size_noise=5, double noise_position=0.0, double noise_variance=1.0) | |
| void | draw (RealVector &input, unsigned int &label) const | 
| Generates a single pair of input and label. | |
|  Public Member Functions inherited from shark::LabeledDataDistribution< RealVector, unsigned int > | |
| virtual | ~LabeledDataDistribution () | 
| Virtual destructor. | |
| std::pair< RealVector, unsigned int > | operator() () | 
| LabeledData< RealVector, unsigned int > | generateDataset (std::size_t size, std::size_t maximumBatchSize) const | 
| Generates a dataset with samples from from the distribution. | |
| LabeledData< RealVector, unsigned int > | generateDataset (std::size_t size) const | 
| Generates a data set with samples from from the distribution. | |
| Protected Attributes | |
| unsigned int | m_size | 
| unsigned int | m_sizeUseful | 
| unsigned int | m_sizeNoise | 
| double | m_noisePos | 
| double | m_noiseVar | 
"Pami Toy" problem for binary classification, as used in the article "Glasmachers
and C. Igel. Maximum Likelihood Model Selection for 1-Norm Soft Margin SVMs with Multiple 
Parameters. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2010." In summary, the first M dimensions are correlated to the labels, the last N dimensions are not. 
 
Definition at line 217 of file DataDistribution.h.
| 
 | inline | 
Definition at line 220 of file DataDistribution.h.
| 
 | inlinevirtual | 
Generates a single pair of input and label.
| input | the generated input | 
| label | the generated label | 
Implements shark::LabeledDataDistribution< RealVector, unsigned int >.
Definition at line 228 of file DataDistribution.h.
References shark::random::discrete(), shark::random::gauss(), shark::random::globalRng, m_noisePos, m_noiseVar, m_size, and m_sizeUseful.
| 
 | protected | 
Definition at line 246 of file DataDistribution.h.
Referenced by draw().
| 
 | protected | 
Definition at line 247 of file DataDistribution.h.
Referenced by draw().
| 
 | protected | 
Definition at line 243 of file DataDistribution.h.
Referenced by draw().
| 
 | protected | 
Definition at line 245 of file DataDistribution.h.
| 
 | protected | 
Definition at line 244 of file DataDistribution.h.
Referenced by draw().