stdpneuron 0.1.6__tar.gz → 0.1.7__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.6
3
+ Version: 0.1.7
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.6"
4
+ __version__ = "0.1.7"
@@ -2,7 +2,7 @@ import json
2
2
  import random
3
3
 
4
4
  class NeuronMass:
5
- def __init__(self, n_neurons=100, n_cons=50, v_decay=0.5, t_decay=0.5):
5
+ def __init__(self, n_neurons=100, n_cons=50, v_decay=0.5, t_decay=0.9):
6
6
  self.n_neurons = n_neurons
7
7
  self.n_cons = n_cons
8
8
  self.total_cons = n_cons * n_neurons
@@ -77,6 +77,6 @@ class NeuronMass:
77
77
  self.bias[i] *= self.plasticity[i] * 0.8
78
78
 
79
79
 
80
- self.bias[i] += self.pr * self.plasticity[i] * self.temperature[i]
80
+ self.bias[i] += self.pr * self.plasticity[i] * self.temperature[i] * 10
81
81
  self.bias[i] = max(-5.0, min(5.0, self.bias[i]))
82
82
  self.temperature[i] *= self.t_decay
File without changes
File without changes
File without changes
File without changes