Skip to content

Feedforward NAN

Arpit Shah edited this page Nov 12, 2018 · 3 revisions

Description

A basic feedforward spiking neural network with 1 input layer, 1 output layer, and 1 Astrocyte.
There are some configurable parameters such as the current and voltage decay for the Loihi compartments representing the neurons.

API

Feedforward NAN

Properties

net: nx.NxNet

pre_num

Number of pre-synaptic neurons.

(Default=20)

post_num

Number of post-synaptic neurons.

(Default=20)

pre_fr

Average firing rate for the pre-synaptic neurons.

(Default=20)

pre_post_w

Weight between pre-synaptic neurons and post-synaptic neurons.

(Default=20)

pre_post_conn_p

Connection density

(Default=0.1)

post_vth

Post-synaptic neurons voltage threshold. The actual threshold for compartmentVoltage is 2^6 * post_vth.

(Default=100)

post_cdecay

compartmentCurrentDecay for post-synaptic neuron compartments.

(Default=409)

post_vdecay

compartmentVoltageDecay for post-synaptic neuron compartments.

(Default=1024)

sim_time

Simulation time duration in milliseconds.

(Default=30000)

Functions

probeNAN(postConditions, astroConditions)

Parameters:

  • postConditions The list of Loihi compartment node parameters to probe.

  • astroConditions Either one value or a list of values indicating which property and which compartment to probe within the Astrocyte.

    All possible enum values are located under combra.ASTRO_SPIKE_RECEIVER_PROBE, combra.ASTRO_IP3_INTEGRATOR_PROBE, combra.ASTRO_SIC_GENERATOR_PROBE, combra.ASTRO_SPIKE_GENERATOR_PROBE with each compartment's properties as values within that probe class respectively.

Example

import combra_loihi.api as combra

nan = combra.FeedforwardNAN(net, sim_time=sim_time)
post_probes, astro_probes = nan.probeNAN([nx.ProbeParameter.SPIKE],
                                            [combra.ASTRO_SPIKE_RECEIVER_PROBE.COMPARTMENT_VOLTAGE,
                                            combra.ASTRO_IP3_INTEGRATOR_PROBE.COMPARTMENT_VOLTAGE,
                                            combra.ASTRO_SIC_GENERATOR_PROBE.COMPARTMENT_VOLTAGE,
                                            combra.ASTRO_SPIKE_GENERATOR_PROBE.SPIKE,
                                            combra.ASTRO_IP3_INTEGRATOR_PROBE.SPIKE])

Clone this wiki locally