class MyMLP

This class is designed to handle a customized Multi-Layer Perceptron.

Inheritance:


Public Fields

[more]bool verbose
verbose
[more]GradientMachine** layers
layers of the MLP
[more]int n_layers
number of layer
[more]bool* is_linear
index of linear layers

Public Methods

[more] Lots of constructors
[more]virtual void reset()
reset the weights of the MLP
[more]virtual void loadXFile(XFile* file)
[more]virtual void saveXFile(XFile* file)
[more]void load(const char* filename_, PreProcessing* preprocess_norm=NULL)
[more]void save(const char* filename_, PreProcessing* preprocess_norm=NULL)
[more]void info()
[more]virtual ~MyMLP()


Documentation

This class is designed to handle a customized Multi-Layer Perceptron.

This is a clone of the MLP of Ronan Collobert but with an auto-load function.

obool verbose
verbose

oGradientMachine** layers
layers of the MLP

oint n_layers
number of layer

obool* is_linear
index of linear layers

o Lots of constructors

o MyMLP(int n_layers, int n_inputs_, ...)
create a MLP with n_layers layers and n_inputs_ inputs

The definitions of the layer come then: it's a string followed by an integer for the number of outputs of the layer. valid strings are "linear", "tanh", "sigmoid", "softmax", "log-softmax", "exp" and "softplus".

        	Example: 
		          create an MLP with one linear layer and one softmax layer
	        
		         MLP(2, n_inputs, "linear", n_outputs, "softmax", n_outputs);
		

o MyMLP(int n_inputs_, char* layer_, int n_outputs_)
create a perceptron (MLP without hidden layers)

o MyMLP(const char* filename_)
create a MLP from a file

o MyMLP()
create an empty MLP

ovirtual void reset()
reset the weights of the MLP

ovirtual void loadXFile(XFile* file)

ovirtual void saveXFile(XFile* file)

ovoid load(const char* filename_, PreProcessing* preprocess_norm=NULL)

ovoid save(const char* filename_, PreProcessing* preprocess_norm=NULL)

ovoid info()

ovirtual ~MyMLP()


This class has no child classes.
Author:
Sebastien Marcel (marcel@idiap.ch)
Version:
2.0 Fri 15 Jul 2005 11:35:24 AM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



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