pyerualjetwork 2.2.5__py3-none-any.whl → 2.2.6__py3-none-any.whl

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.
plan_bi/plan_bi.py CHANGED
@@ -61,6 +61,7 @@ def fit(
61
61
  W = weight_identification(len(layers) - 1,len(class_count),neurons,x_train_size)
62
62
  trained_W = [1] * len(W)
63
63
  print(Fore.GREEN + "Train Started with 0 ERROR" + Style.RESET_ALL,)
64
+ y = decode_one_hot(y_train)
64
65
  start_time = time.time()
65
66
  for index, inp in enumerate(x_train):
66
67
  uni_start_time = time.time()
@@ -76,15 +77,15 @@ def fit(
76
77
 
77
78
  for Lindex, Layer in enumerate(layers):
78
79
 
79
- y = np.argmax(y_train[index])
80
80
  neural_layer = normalization(neural_layer)
81
81
 
82
82
  if Layer == 'fex':
83
- W[Lindex] = fex(neural_layer, W[Lindex], activation_potential, True, y)
83
+ W[Lindex] = fex(neural_layer, W[Lindex], activation_potential, True, y[index])
84
84
 
85
85
 
86
86
  for i, w in enumerate(W):
87
- trained_W[i] = trained_W[i] + w
87
+ if i!= len(W) - 1:
88
+ trained_W[i] = trained_W[i] + w
88
89
 
89
90
 
90
91
  W = weight_identification(len(layers) - 1, len(class_count), neurons, x_train_size)
plan_di/plan_di.py CHANGED
@@ -64,6 +64,7 @@ def fit(
64
64
 
65
65
  trained_W = [1] * len(W)
66
66
  print(Fore.GREEN + "Train Started with 0 ERROR" + Style.RESET_ALL)
67
+ y = decode_one_hot(y_train)
67
68
  start_time = time.time()
68
69
  for index, inp in enumerate(x_train):
69
70
  uni_start_time = time.time()
@@ -81,12 +82,12 @@ def fit(
81
82
 
82
83
  neural_layer = normalization(neural_layer)
83
84
 
84
- y = np.argmax(y_train[index])
85
85
  if Layer == 'fex':
86
- W[Lindex] = fex(neural_layer, W[Lindex], True, y)
86
+ W[Lindex] = fex(neural_layer, W[Lindex], True, y[index])
87
87
 
88
88
  for i, w in enumerate(W):
89
- trained_W[i] = trained_W[i] + w
89
+ if i!= len(W) - 1:
90
+ trained_W[i] = trained_W[i] + w
90
91
 
91
92
  W = weight_identification(
92
93
  len(layers) - 1, len(class_count), neurons, x_train_size)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 2.2.5
3
+ Version: 2.2.6
4
4
  Summary: Code improvements (Documentation in desc. Examples in GİTHUB: https://github.com/HCB06/PyerualJetwork)
5
5
  Author: Hasan Can Beydili
6
6
  Author-email: tchasancan@gmail.com
@@ -0,0 +1,8 @@
1
+ plan_bi/__init__.py,sha256=rzDe7yWvNlwDVE6xSw8Qk51itcxT6EDBj7iiOeycxMw,475
2
+ plan_bi/plan_bi.py,sha256=hQtCv3lh9a415CXtX1qL4aa_75noFPNoeOGnCeKMzUY,45452
3
+ plan_di/__init__.py,sha256=Omxc07PXPQZOrXBD3PJQT6sPdni6NMykyiQgKVL_IZ0,466
4
+ plan_di/plan_di.py,sha256=NGYH6EYfUL-f0QEWzA9LNJ-DdoM1fBeT9PaEJYyon4c,42907
5
+ pyerualjetwork-2.2.6.dist-info/METADATA,sha256=8p9SuPZRni3zTkdrWsdMpnwov8pFvkP7e_x-hfLUiNE,325
6
+ pyerualjetwork-2.2.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ pyerualjetwork-2.2.6.dist-info/top_level.txt,sha256=aaXSOcnD62fbXG1x7tw4nV50Qxx9g9zDNLK7OD4BdPE,16
8
+ pyerualjetwork-2.2.6.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- plan_bi/__init__.py,sha256=rzDe7yWvNlwDVE6xSw8Qk51itcxT6EDBj7iiOeycxMw,475
2
- plan_bi/plan_bi.py,sha256=oUEZIGG8Y1nTNED33kAy2RrlW5LQIFPnwxwM8_O3QOQ,45419
3
- plan_di/__init__.py,sha256=Omxc07PXPQZOrXBD3PJQT6sPdni6NMykyiQgKVL_IZ0,466
4
- plan_di/plan_di.py,sha256=HQqc_jheT9x8NkJ9_Fvqa8EN4ehkExVy3RqvqAwPwgU,42874
5
- pyerualjetwork-2.2.5.dist-info/METADATA,sha256=X7c4sZ142CbFtk_c7juhftpO1yjzwHCa9Jt4PiQuwmQ,325
6
- pyerualjetwork-2.2.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- pyerualjetwork-2.2.5.dist-info/top_level.txt,sha256=aaXSOcnD62fbXG1x7tw4nV50Qxx9g9zDNLK7OD4BdPE,16
8
- pyerualjetwork-2.2.5.dist-info/RECORD,,