neurx v0.1.3 Neurx.Connection View Source

Neurons communciate via connections. Connection weights determine the network output and are updated while training occurs. Network capability is represented in the network matrix of weight values.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Convenience method that takes two neuron pids, creates a connection, and then returns connection pid

Return connection by PID

Server Callback for GenServer - call

Server Callback for GenServer - cast

Server Callback for GenServer - init

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

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function connection_for(source_pid, target_pid) View Source

Convenience method that takes two neuron pids, creates a connection, and then returns connection pid.

Return connection 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(connection_fields \\ %{}) View Source

Creates a connection.

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