stdpneuron 0.1.4__tar.gz → 0.1.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: stdpneuron
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: idk
5
5
  Project-URL: Documentation, https://github.com/Guille-ux/stdpneuron#readme
6
6
  Project-URL: Issues, https://github.com/Guille-ux/stdpneuron/issues
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2026-present Guille-ux <guilleleiratemes@gmail.com>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.1.4"
4
+ __version__ = "0.1.5"
@@ -12,7 +12,7 @@ class NeuronMass:
12
12
  self.voltage = [0] * self.n_neurons
13
13
  self.temperature = [0] * self.total_cons
14
14
  self.plasticity = [1] * self.total_cons
15
- self.bias = [1] * self.total_cons
15
+ self.bias = [5] * self.total_cons
16
16
  self.pr = 0
17
17
  self.outputs = [0] * self.n_neurons
18
18
  self.v_decay = v_decay
@@ -63,7 +63,6 @@ class NeuronMass:
63
63
  self.voltage[i] += delta_voltage
64
64
  if self.voltage[i] > self.threeholds[i]:
65
65
  self.outputs[i] = 1
66
- self.voltage[i] = 0
67
66
  else:
68
67
  self.outputs[i] = 0
69
68
  self.voltage[i] *= self.v_decay
@@ -75,7 +74,7 @@ class NeuronMass:
75
74
  self.bias[i] += self.plasticity[i] * (self.temperature[i])
76
75
 
77
76
  else:
78
- self.bias[i] -= self.plasticity[i] * self.temperature[i]
77
+ self.bias[i] *= self.plasticity[i] * 0.995
79
78
 
80
79
 
81
80
  self.bias[i] += self.pr * self.plasticity[i] * self.temperature[i]
File without changes
File without changes
File without changes
File without changes