class RBF

This class is a simple interface to the ConnectedMachine class that ca be used to build the well-known Radial Basis Function type of neural networks.

Inheritance:


Public Fields

[more]LogRBF* log_rbf_layer
the LogRBF layer
[more]Exp* exp_layer
the Exp layer
[more]Linear* outputs_layer
the Linear layer
[more]Tanh* outputs_tanh_layer
the optional Tanh layer
[more]int n_hidden
the number of basis functions
[more]bool is_linear_outputs
if this is false, add a Tanh layer
[more]bool inputs_to_outputs
if this is true, add a direct connection from inputs to Linear
[more]Linear* add_layer
the direct Linear layer
[more]SumMachine* sum_layer
if inputs_to_outputs is true, we also need a SumMachine

Public Methods

[more] RBF(int n_inputs_, int n_hidden, int n_outputs_, bool is_linear_outputs_=true, bool inputs_to_outputs=false, EMTrainer* kmeans_trainer=NULL)


Inherited from ConnectedMachine:

Public Methods

ovoid addFCL(GradientMachine* machine)
ovoid addMachine(GradientMachine* machine)
ovoid connectOn(GradientMachine* machine)
ovoid addLayer()


Inherited from GradientMachine:

Public Fields

obool is_free
oList* params
oList* der_params
oint n_params
oreal* beta

Public Methods

ovirtual void init()
ovirtual int numberOfParams()
ovirtual void iterInitialize()
ovirtual void backward(List* inputs, real* alpha)
ovirtual void allocateMemory()
ovirtual void freeMemory()
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)


Inherited from Machine:

Public Fields

oint n_inputs
oint n_outputs
oList* outputs

Public Methods

ovirtual void forward(List* inputs)
ovirtual void reset()


Inherited from Object:

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
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 load(const char* filename)
ovoid save(const char* filename)


Documentation

This class is a simple interface to the ConnectedMachine class that ca be used to build the well-known Radial Basis Function type of neural networks. It contains a layer of LogRBF followed by a layer of Exp, followed by a layer of Linear and optionally a layer of Tanh for classification experiments. Optionally, it also contains a direct connection from the inputs to the linear layer.

oLogRBF* log_rbf_layer
the LogRBF layer

oExp* exp_layer
the Exp layer

oLinear* outputs_layer
the Linear layer

oTanh* outputs_tanh_layer
the optional Tanh layer

oint n_hidden
the number of basis functions

obool is_linear_outputs
if this is false, add a Tanh layer

obool inputs_to_outputs
if this is true, add a direct connection from inputs to Linear

oLinear* add_layer
the direct Linear layer

oSumMachine* sum_layer
if inputs_to_outputs is true, we also need a SumMachine

o RBF(int n_inputs_, int n_hidden, int n_outputs_, bool is_linear_outputs_=true, bool inputs_to_outputs=false, EMTrainer* kmeans_trainer=NULL)


This class has no child classes.
Author:
Samy Bengio (bengio@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



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