a set of C++ library classes
for neural networks development



class TwoLayerTest

MLP with one hidden layer - HTML documentation under construction.

Inheritance:


Public Methods

[more] TwoLayerTest ()
[more] TwoLayerTest (unsigned nout, unsigned nhidden, unsigned nin, act_func fout=sigmoid, act_func fhid1=sigmoid)
[more]virtual ~TwoLayerTest ()
[more]inline unsigned Nhidden1 () const
[more]vect& compute (vect& vinput)
[more]void init_weights_const (double x)
[more]void print_weights (void)

Protected Fields

[more]unsigned n_hidden1


Inherited from OneLayerTest:

Public Methods

ovoid read_weights(istream& f)
ounsigned test(TrainingSet& tset)
ovoid print_errors()
oinline unsigned read_num_errors() const
oinline double read_perc_errors() const

Protected Fields

oLayerNet layertest[MAXLAYERS]
ounsigned num_errors
odouble perc_errors

Protected Methods

ounsigned maxclass(vect& out, int dim)


Inherited from Network:

Public Fields

ostatic const char* const NET_EXT
ostatic const char* const NETCV_EXT
ostatic const char* const ERR_EXT
ostatic const char* const OUT_EXT
ostatic const unsigned OUTPUT
ostatic const unsigned HIDDEN1
ostatic const unsigned HIDDEN2
ostatic const char* const CV_SUFFIX

Public Methods

oinline unsigned Nlayers() const
oinline unsigned Ninput() const
oinline unsigned Noutput() const

Protected Fields

ounsigned n_layers
ounsigned n_inputs
ounsigned n_outputs


Documentation

Two-Layer Perceptron
It Implemets a MLP with one hidden layer only for testing: no learning is allowed
o TwoLayerTest()

o TwoLayerTest(unsigned nout, unsigned nhidden, unsigned nin, act_func fout=sigmoid, act_func fhid1=sigmoid)

ovirtual ~TwoLayerTest()

oinline unsigned Nhidden1() const

ovect& compute(vect& vinput)

ovoid init_weights_const(double x)

ovoid print_weights(void)

ounsigned n_hidden1


Direct child classes:
ThreeLayerTest

Alphabetic index HTML hierarchy of classes or Java


Last Updated February 2001
For comments and suggestions mail to Giorgio Valentini