neurx v0.1.3 Neurx.Layer View Source

List of neurons. The are used to apply behaviors on sets of neurons. A network is made up layers (which are made up of neurons).

Link to this section Summary

Functions

Activate all neurons in the layer with a list of values

Add neurons to the layer

Returns a specification to start this module under a supervisor

Connect every neuron in the input layer to every neuron in the target layer

Return a layer by pid

Server Callback for GenServer - call

Server Callback for GenServer - cast

Server Callback for GenServer - init

Update all deltas for each neuron

Update a layer by passing in a pid and a map of fields to update

Link to this section Functions

Link to this function activate(layer_pid, values \\ nil) View Source

Activate all neurons in the layer with a list of values.

Link to this function add_neurons(layer_pid, neurons) View Source

Add neurons to the layer.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function connect(input_layer_pid, output_layer_pid) View Source

Connect every neuron in the input layer to every neuron in the target layer.

Return a layer by pid.

Link to this function handle_call(msg, from, state) View Source

Server Callback for GenServer - call

Server Callback for GenServer - cast

Server Callback for GenServer - init

Link to this function start_link(layer_fields \\ %{}) View Source

Creates a layer.

Link to this function train(layer, target_outputs \\ []) View Source

Update all deltas for each neuron.

Update a layer by passing in a pid and a map of fields to update.