SpikeNet 1.0.2__tar.gz → 1.0.3__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.4
2
2
  Name: SpikeNet
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Spiking neural network library for games
5
5
  Author: Danic_Programmer
6
6
  License: MIT
@@ -2,7 +2,7 @@ import os
2
2
  import sys
3
3
  import random
4
4
 
5
- __version__ = "1.0.2"
5
+ __version__ = "1.0.3"
6
6
 
7
7
  _neurons = []
8
8
  _sinapce = []
@@ -858,8 +858,8 @@ def Reward(state, reward, lr=0.01):
858
858
  e = elig[pre] * elig[post]
859
859
  if e > 0.01:
860
860
  s["weight"] += lr * reward * e
861
- if s["weight"] > 1.0:
862
- s["weight"] = 1.0
863
- if s["weight"] < -1.0:
864
- s["weight"] = -1.0
861
+ if s["weight"] > 50.0:
862
+ s["weight"] = 50.0
863
+ if s["weight"] < -50.0:
864
+ s["weight"] = -50.0
865
865
  return
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SpikeNet
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Spiking neural network library for games
5
5
  Author: Danic_Programmer
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "SpikeNet"
7
- version = "1.0.2"
7
+ version = "1.0.3"
8
8
  description = "Spiking neural network library for games"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
File without changes
File without changes
File without changes