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



class OneLayerTest

Simple perceptron

Inheritance:


Public Methods

[more] OneLayerTest ()
[more] OneLayerTest (unsigned nout, unsigned nin, act_func fout=sigmoid)
[more]virtual ~OneLayerTest ()
[more]virtual vect& compute (vect& vinput)
[more]virtual void print_weights (void)
[more]virtual void init_weights_const (double x)
[more]void read_weights (istream& f)
[more]unsigned test (TrainingSet& tset)
[more]void print_errors ()
[more]inline unsigned read_num_errors () const
[more]inline double read_perc_errors () const

Protected Fields

[more]LayerNet layertest [MAXLAYERS]
[more]unsigned num_errors
[more]double perc_errors

Protected Methods

[more]unsigned 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

Simple perceptron
It Implemets a simple perceptron only for testing: no learning is allowed
HTML documentation under construction.
o OneLayerTest()

o OneLayerTest(unsigned nout, unsigned nin, act_func fout=sigmoid)

ovirtual ~OneLayerTest()

ovirtual vect& compute(vect& vinput)

ovirtual void print_weights(void)

ovirtual void init_weights_const(double x)

ovoid read_weights(istream& f)

ounsigned test(TrainingSet& tset)

ovoid print_errors()

oinline unsigned read_num_errors() const

oinline double read_perc_errors() const

oLayerNet layertest[MAXLAYERS]

ounsigned num_errors

odouble perc_errors

ounsigned maxclass(vect& out, int dim)


Direct child classes:
TwoLayerTest

Alphabetic index HTML hierarchy of classes or Java


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