stdpneuron 0.1.10__tar.gz → 0.1.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/PKG-INFO +1 -1
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/src/stdpneuron/__about__.py +1 -1
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/src/stdpneuron/brain.py +2 -2
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/LICENSE.txt +0 -0
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/README.md +0 -0
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/pyproject.toml +0 -0
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/src/stdpneuron/__init__.py +0 -0
- {stdpneuron-0.1.10 → stdpneuron-0.1.12}/tests/__init__.py +0 -0
|
@@ -61,8 +61,8 @@ class NeuronMass:
|
|
|
61
61
|
for j in range(self.total_cons):
|
|
62
62
|
if self.connections_in[j] == i: # es decir, esta conexión entra en la neurona q estamos mirando?
|
|
63
63
|
cons_ids.append(j)
|
|
64
|
-
delta_voltage += self.bias[j]*self.last_outputs[self.connections_out[j]] * self.voltage[self.connections_out[j]]
|
|
65
|
-
self.temperature[j] += self.bias[j]*self.last_outputs[self.connections_out[j]] * self.voltage[self.connections_out[j]]
|
|
64
|
+
delta_voltage += self.bias[j]*self.last_outputs[self.connections_out[j]] * max(1.0, self.voltage[self.connections_out[j]])
|
|
65
|
+
self.temperature[j] += self.bias[j]*self.last_outputs[self.connections_out[j]] * max(1.0, self.voltage[self.connections_out[j]])
|
|
66
66
|
self.voltage[i] += delta_voltage
|
|
67
67
|
if self.voltage[i] > self.threeholds[i]:
|
|
68
68
|
self.outputs[i] = 1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|