The connections inside this network.
The gates inside this network.
The input size of this network.
The nodes inside this network. Stored in activation order.
The output size of this network.
The score of this network for evolution.
Activates the network
It will activate all the nodes in activation order and produce an output.
The dropout rate. dropout
Controls whether traces are created when activation happens (a trace is meta information left behind for different uses, e.g. backpropagation).
Squashed output values
Makes a network node gate a connection
Gating node
Connection to gate with node
Clear the context of the network
Connects a Node to another Node or Group in the network
An array of the formed connections
Returns a copy of Network.
Returns an identical network
Removes the connection of the from
node to the to
node
Distance function
other network
Mutates the network with the given method.
(mutation)
Selects a random mutation method and returns a mutated copy of the network. Warning! Mutates network directly.
All allowed activations
Maximum amount of Connections a network can grow to
Maximum amount of Gates a network can grow to
Maximum amount of nodes a network can grow to
Backpropagate the network
This function allows you to teach the network. If you want to do more complex training, use the network.train()
function.
Ideal values of the previous activate. Will use the difference to improve the weights
More option for propagation
Momentum. Adds a fraction of the previous weight update to the current one.
Sets the learning rate of the backpropagation process.
When set to false weights won't update, but when set to true after being false the last propagation will include the delta weights of the first "update:false" propagation too.
Remove the gate of a connection.
Connection to remove gate from
Removes a node from a network, all its connections will be redirected. If it gates a connection, the gate will be removed.
Node to remove from the network
Tests a set and returns the error and elapsed time
A summary object of the network's performance
Convert the network to a json object
The network represented as a json object
Train the given data to this network
Options used to train network
,iterations:{number},time:{number}}} A summary object of the network's performance
The loss of the network after training.
The iterations took for training the network.
The time from begin to end in milliseconds
Performs one training epoch and returns the error - this is a private function used in self.train
The batch size.
The dataset.
The dropout rate
The loss function.
The momentum.
The training rate.
Convert a json object to a network
Network A reconstructed network
Generated using TypeDoc
Create a neural network
Networks are easy to create, all you need to specify is an
input
and anoutput
size.Network