Public Member Functions | |
MlpFactory (istream &definition) | |
Construct using a definition text stream. | |
Mlp * | create (mt19937 *prgen) |
Return a raw ptr to a new Mlp object; use the given rnd generator. | |
Protected Attributes | |
vector< size_t > | ininneur |
vector< ActF > | iniactf |
MlpFactory::MlpFactory | ( | istream & | definition | ) |
Construct using a definition text stream.
Format is according to the following example:
init_size: 2-4-5-2 init_actf: in-tanh-tanh-lin init_weights: uniform(-1,1)
One definition on each line. Obvious modifications are possible. Default is tanh on hidden layer and linear activation on output layer. Default initialization is uniform(-1,1). Number of neurons must always be given.
Mlp * MlpFactory::create | ( | mt19937 * | prgen | ) |
Return a raw ptr to a new Mlp object; use the given rnd generator.