- docs.neurons.me NeuralNetwork

Class

NeuralNetwork

NeuralNetwork()

Class representing a neural network.
Constructor

# new NeuralNetwork()

Create a neural network.

View Source src/NeuralNetwork.js, line 15

Methods

# addLayer(layer)

Add a layer to the neural network.
Parameters:
Name Type Description
layer Layer The layer to add.

View Source src/NeuralNetwork.js, line 29

# feedforward(input) → {Array}

Feedforward the input through the network.
Parameters:
Name Type Description
input Array The input values.

View Source src/NeuralNetwork.js, line 72

The output of the network.
Array

# initialize()

Initialize the neural network with random weights.

View Source src/NeuralNetwork.js, line 63

# removeLayer(layer)

Remove a layer from the neural network.
Parameters:
Name Type Description
layer Layer The layer to remove.

View Source src/NeuralNetwork.js, line 37

# setInputLayer(layer)

Set a layer as the input layer of the neural network.
Parameters:
Name Type Description
layer Layer The layer to set as input layer.

View Source src/NeuralNetwork.js, line 48

# setOutputLayer(layer)

Set a layer as the output layer of the neural network.
Parameters:
Name Type Description
layer Layer The layer to set as output layer.

View Source src/NeuralNetwork.js, line 56

# train(data)

Train the neural network with given data.
Parameters:
Name Type Description
data Array The training data.

View Source src/NeuralNetwork.js, line 80

Witness our Seal.
neurons.me