Multi-layer perceptron

Multi-layer perceptron, or feedforward neural network, as MATLAB class


Updated Tue, 18 Dec 2018 22:41:16 +0000

View License

MultiLayerPerceptron consists of a MATLAB class including a configurable multi-layer perceptron (or
feedforward neural network) and the methods useful for its setting and its training.

The multi-layer perceptron is fully configurable by the user through the definition of lengths and activation
functions of its successive layers as follows:
- Random initialization of weights and biases through a dedicated method,
- Setting of activation functions through method "set".

The training method of the neural network is based on the following algorithms:
- Gradient descent, with configurable learning rate, momentum and size of batches,
- Levenberg-Marquardt, with configurable parameters and an optional bayesian regularization.

The evolution of the training is viewable through an embedded visualization window and configurable in
terms of:
- Minimum mean square error (MSE),
- Number of epochs,
- Ratio between training and validation data sets.

Video demonstrations:

Cite As

Eric Ogier (2023). Multi-layer perceptron (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with R2018a and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Version Published Release Notes