eoscircuits.alcircuits package¶
Subpackages¶
- eoscircuits.alcircuits.NDComponents package
- Submodules
- eoscircuits.alcircuits.NDComponents.Alpha module
- eoscircuits.alcircuits.NDComponents.LeakyIAF module
- eoscircuits.alcircuits.NDComponents.OSNAxt module
- eoscircuits.alcircuits.NDComponents.OSNAxt2 module
- eoscircuits.alcircuits.NDComponents.PN module
- eoscircuits.alcircuits.NDComponents.PostLN module
- eoscircuits.alcircuits.NDComponents.PreLN module
- Module contents
Submodules¶
eoscircuits.alcircuits.circuit module¶
Antennal Lobe Circuit
This module supports:
1. Changing parameter values of Biological Spike Generators (BSGs) associated with each of the Local and Projection Neurons, 2. Changing the number and connectivity of Projection Neurons innervating a given AL Glomerulus, 3. Changing the number and connectivity of Local Neurons in the Predictive Coding and ON-OFF circuits of the AL
-
class
eoscircuits.alcircuits.circuit.
ALCircuit
(graph, config)[source]¶ Bases:
eoscircuits.basecircuit.Circuit
Antennal Lobe Circuit
- Parameters
graph (networkx.classes.multidigraph.MultiDiGraph) –
config (eoscircuits.alcircuits.circuit.ALConfig) –
- Return type
None
-
config
: eoscircuits.alcircuits.circuit.ALConfig¶ Configuration of Circuit. Fully Specifies the Circuit
-
classmethod
create_from_config
(cfg)[source]¶ Create Instance from Config
- Parameters
cfg – Config instance that specifies the configuration of the module
- Returns
A new ANTCircuit instance
- Return type
-
classmethod
create_graph
(cfg)[source]¶ class method that creates an instance of networkx graph from configuration
- Return type
networkx.classes.multidigraph.MultiDiGraph
-
extra_comps
: List[NDComponent]¶ Extra Components to be aded to NeuroKernel at Run Time
-
get_node_ids
(node_type, receptor=None)[source]¶ - Parameters
node_type (ALConfig.node_types) –
receptor (Union[str, Iterable[str]]) –
- Return type
list
-
property
inputs
¶ Output OTP Nodes IDs and the Variables
- Returns
OTPs with input variable conc
-
property
outputs
¶ Output BSG Nodes IDs and the Variables
- Returns
PNs with output variable r
-
set_neuron_number
(node_type, number, receptor=None)[source]¶ Set Number of Neurons and change Routing Table Appropriately
- Parameters
node_type (ALConfig.node_types) –
number (int) –
receptor (Union[str, Iterable[str]]) –
- Return type
-
class
eoscircuits.alcircuits.circuit.
ALConfig
(NO:Iterable[Iterable[int]], affs:Iterable[float], receptors:Iterable[str]=None, resting:float=None, node_params:dict=<factory>, osns:Iterable[Iterable[str]]=None, NP:Union[int, Iterable[int]]=None, NPreLN:int=None, NPosteLN:Union[int, Iterable[int]]=None, NPostiLN:Union[int, Iterable[int]]=None, prelns:Iterable[str]=None, postelns:Iterable[Iterable[str]]=None, postilns:Iterable[Iterable[str]]=None, pns:Iterable[Iterable[str]]=None, osn_to_preln:Iterable[Iterable[float]]=None, osn_to_postiln:Iterable[Iterable[float]]=None, osn_to_posteln:Iterable[Iterable[float]]=None, preln_to_axt:Iterable[Iterable[float]]=None, axt_to_pn:Iterable[Iterable[float]]=None, postiln_to_pn:Iterable[Iterable[float]]=None, posteln_to_pn:Iterable[Iterable[float]]=None)[source]¶ Bases:
eoscircuits.antcircuits.circuit.ANTConfig
- Parameters
NO (Iterable[Iterable[int]]) –
affs (Iterable[float]) –
receptors (Iterable[str]) –
resting (float) –
node_params (dict) –
osns (Iterable[Iterable[str]]) –
NP (Union[int, Iterable[int]]) –
NPreLN (int) –
NPosteLN (Union[int, Iterable[int]]) –
NPostiLN (Union[int, Iterable[int]]) –
prelns (Iterable[str]) –
postelns (Iterable[Iterable[str]]) –
postilns (Iterable[Iterable[str]]) –
pns (Iterable[Iterable[str]]) –
osn_to_preln (Iterable[Iterable[float]]) –
osn_to_postiln (Iterable[Iterable[float]]) –
osn_to_posteln (Iterable[Iterable[float]]) –
preln_to_axt (Iterable[Iterable[float]]) –
axt_to_pn (Iterable[Iterable[float]]) –
postiln_to_pn (Iterable[Iterable[float]]) –
posteln_to_pn (Iterable[Iterable[float]]) –
- Return type
None
-
NP
: Union[int, Iterable[int]] = None¶ Number of PNs, organized by Receptor Type
-
NPosteLN
: Union[int, Iterable[int]] = None¶ Number of Post-synaptic Excitatory Local Neurons, organized by Receptor Type
-
NPostiLN
: Union[int, Iterable[int]] = None¶ Number of Post-synaptic Inhibitory Local Neurons, organized by Receptor Type
-
NPreLN
: int = None¶ Number of Pre-synaptic Local Neurons
-
as_node_ids
(table, source, target)[source]¶ Convert Routing Table’s indices to node Ids
- Parameters
table – routing table
source – source node ids
target – target node ids
- Returns
A flattenend list of all [source, target] node ids
- Return type
List[List[str]]
-
axt_to_pn
: Iterable[Iterable[float]] = None¶
-
property
node_types
¶ List of Recognized Node Types
-
property
osn_alphas
¶
-
property
osn_axts
¶
-
property
osn_bsgs
¶
-
property
osn_otps
¶
-
osn_to_posteln
: Iterable[Iterable[float]] = None¶
-
osn_to_postiln
: Iterable[Iterable[float]] = None¶
-
osn_to_preln
: Iterable[Iterable[float]] = None¶
-
pns
: Iterable[Iterable[str]] = None¶
-
posteln_to_pn
: Iterable[Iterable[float]] = None¶
-
postelns
: Iterable[Iterable[str]] = None¶
-
postiln_to_pn
: Iterable[Iterable[float]] = None¶
-
postilns
: Iterable[Iterable[str]] = None¶
-
preln_to_axt
: Iterable[Iterable[float]] = None¶
-
prelns
: Iterable[str] = None¶
-
property
routing_tables
¶ List of Recognized Routing Tables
eoscircuits.alcircuits.model module¶
-
class
eoscircuits.alcircuits.model.
Alpha
[source]¶ Bases:
object
-
params
= {'ad': 12.19, 'ar': 12.5, 'gmax': 0.1}¶
-
-
class
eoscircuits.alcircuits.model.
LeakyIAF
[source]¶ Bases:
object
-
params
= {'c': 1.5, 'r': 0.2, 'vr': -0.07, 'vt': -0.025}¶
-
-
class
eoscircuits.alcircuits.model.
OSNAxt
[source]¶ Bases:
object
-
params
= {'bias': 1.0, 'gain': 1.0, 'gamma': 100.0}¶
-
-
class
eoscircuits.alcircuits.model.
OSNAxt2
[source]¶ Bases:
object
-
params
= {'bias': 1.0, 'gain': 1.0}¶
-
Module contents¶
Antennal Lobe Circuit
This module supports:
Changing parameter values of Biological Spike Generators (BSGs) associated with each of the Local and Projection Neurons,
Changing the number and connectivity of Projection Neurons innervating a given AL Glomerulus,
Changing the number and connectivity of Local Neurons in the Predictive Coding and ON-OFF circuits of the AL