sakuya/node_modules/neataptic/mkdocs/templates/docs/builtins/perceptron.md
2022-04-10 00:37:53 +08:00

1.0 KiB

description: How to use the Perceptron network in Neataptic authors: Thomas Wagenaar keywords: feed-forward, neural-network, perceptron, MLP, architecture

This architecture allows you to create multilayer perceptrons, also known as feed-forward neural networks. They consist of a sequence of layers, each fully connected to the next one.

multilayer perceptron

You have to provide a minimum of 3 layers (input, hidden and output), but you can use as many hidden layers as you wish. This is a Perceptron with 2 neurons in the input layer, 3 neurons in the hidden layer, and 1 neuron in the output layer:

var myPerceptron = new architect.Perceptron(2,3,1);

And this is a deep multilayer perceptron with 2 neurons in the input layer, 4 hidden layers with 10 neurons each, and 1 neuron in the output layer

var myPerceptron = new architect.Perceptron(2, 10, 10, 10, 10, 1);