Public Member Functions |
| mnist_datasource (const char *root, bool train_data, uint size) |
| mnist_datasource (const char *root, const char *name, uint size) |
virtual | ~mnist_datasource () |
| Destructor.
|
virtual void | fprop_data (bbstate_idx< Tnet > &s) |
| Copy current sample's data into s.
|
Protected Member Functions |
virtual void | init (idx< Tdata > &data, idx< Tlabel > &labels, const char *name) |
| Initialize with 'data' and 'labels', and an optional 'name'.
|
template<typename Tnet, typename Tdata, typename Tlabel>
class ebl::mnist_datasource< Tnet, Tdata, Tlabel >
A datasource specific to the MNIST dataset. The specific operations for MNIST are padding the data from 28x28 to 32x32 and multiplying it by a coefficient of .01 (brining the input range from [0,255] to [0,2.55] (the coefficient and bias can be overriden via the inherited set_data_coeff() and set_data_bias() methods).