|
CompoundPye
0.93
Modelling and Simulation Framework for Neural Networks of Arthropod Compound Eyes
|
Basic component class. More...
Public Member Functions | |
| def | __init__ |
| Initializes a Component-object. More... | |
| def | update |
| Updates the Component's internal value and output based on the provided input. More... | |
| def | get_output |
| Returns Component.output . More... | |
| def | add_connection |
| Adds a connections to the Component's list of connections. More... | |
Public Attributes | |
| value | |
| Current internal value. More... | |
| output | |
| Current output of the object, calculated using the object's transfer function Component.activation_func and its internal value Component.value as the function's input. More... | |
| activation_func | |
| Transfer function of the Component-object. More... | |
| param | |
| List of parameters for the object's transfer function Component.activation_func. More... | |
| time_const_output | |
| The Component's time constant, which specifies how much of its previous Component.value remains after each update step. More... | |
| label | |
| attributes | |
| assign attributes to the neuron, e.g. More... | |
| next_neighbour_single_time | |
| create only once per pairs of neighbours, True or False More... | |
Basic component class.
A Component-object is a basic building block of a circuit. It has a list of connections, which contains connections to other Component-objects. Based on the connections between components of a circuit/network, the Circuit-object calculates the input to each Component during one update step. The Component uses the input to update its internal value/membrane potential (self.value). It generates an output based on self.value using its Component.activation_func .
| def CompoundPye.src.Components.component.Component.__init__ | ( | self, | |
| activation_function, | |||
function_parameters = [], |
|||
time_const_input = 0.05, |
|||
time_const_output = 0.05, |
|||
debug = False |
|||
| ) |
Initializes a Component-object.
| activation_function | Transfer function that is to be used to generate the Component's output Component.output from its internal value Component.value . |
| function_parameters | List of parameters for the Component's transfer function Component.activation_func . |
| time_const | Time constant, see Component.time_const . |
| debug | Set False, if you don't want to see debugging output, set True if you want to see debugging output. |
| def CompoundPye.src.Components.component.Component.add_connection | ( | self, | |
| weight, | |||
| target | |||
| ) |
Adds a connections to the Component's list of connections.
| weight | Strength of the connection. |
| target | Target of the connections (has to be a Component-object). |
| def CompoundPye.src.Components.component.Component.get_output | ( | self | ) |
Returns Component.output .
| def CompoundPye.src.Components.component.Component.update | ( | self, | |
| input, | |||
| dt | |||
| ) |
Updates the Component's internal value and output based on the provided input.
| input | Input used for update. |
| dt | Time step for the update |
| CompoundPye.src.Components.component.Component.activation_func |
Transfer function of the Component-object.
| CompoundPye.src.Components.component.Component.attributes |
assign attributes to the neuron, e.g.
axis:horizontal or axis:vertical, direction:positive or direction:negative (probably required for further connection)
| CompoundPye.src.Components.component.Component.label |
| CompoundPye.src.Components.component.Component.next_neighbour_single_time |
create only once per pairs of neighbours, True or False
| CompoundPye.src.Components.component.Component.output |
Current output of the object, calculated using the object's transfer function Component.activation_func and its internal value Component.value as the function's input.
| CompoundPye.src.Components.component.Component.param |
List of parameters for the object's transfer function Component.activation_func.
| CompoundPye.src.Components.component.Component.time_const_output |
The Component's time constant, which specifies how much of its previous Component.value remains after each update step.
| CompoundPye.src.Components.component.Component.value |
Current internal value.