class ConnectedMachine

Easy connections between several GradientMachine.

Inheritance:


Public Methods

[more] ConnectedMachine()
[more]void addFCL(GradientMachine* machine)
Add a Full Connected Layer.
[more]void addMachine(GradientMachine* machine)
Add a machine on the current layer
[more]void connectOn(GradientMachine* machine)
Connect the last added machine on machine.
[more]void addLayer()
Add a layer (you don't have to call that for the first layer)
[more]void build()
Contruct the machine.


Inherited from GradientMachine:

Public Fields

oint n_inputs
oint n_outputs
oParameters* params
oParameters* der_params
oSequence* beta

Public Methods

ovirtual void iterInitialize()
ovirtual void forward(Sequence* inputs)
ovirtual void backward(Sequence* inputs, Sequence* alpha)
ovirtual void setPartialBackprop(bool flag=true)
ovirtual void frameForward(int t, real* f_inputs, real* f_outputs)
ovirtual void frameBackward(int t, real* f_inputs, real* beta_, real* f_outputs, real* alpha_)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)


Inherited from Machine:

Public Fields

oSequence* outputs

Public Methods

ovirtual void reset()
ovirtual void setDataSet(DataSet* dataset_)


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

Easy connections between several GradientMachine. GradientMachine has "layers" on which you can add some GradientMachine.

The inputs of the machine on the first layer will be the inputs of the ConnectedMachine.

The outputs of the ConnectedMachine are the union (in the order of adding) of all machines on the last layer.

o ConnectedMachine()

ovoid addFCL(GradientMachine* machine)
Add a Full Connected Layer. The machine is fully connected to the previous layer. If necessary, a layer is added before adding the machine.

ovoid addMachine(GradientMachine* machine)
Add a machine on the current layer

ovoid connectOn(GradientMachine* machine)
Connect the last added machine on machine. Note that machine must be in a previous layer.

ovoid addLayer()
Add a layer (you don't have to call that for the first layer)

ovoid build()
Contruct the machine. you need to call that after adding and connecting all the machines.


Direct child classes:
SpeechMLP
MLP
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.