pyerualjetwork 2.2.6__py3-none-any.whl → 2.2.7__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
@@ -84,8 +84,7 @@ def fit(
84
84
 
85
85
 
86
86
  for i, w in enumerate(W):
87
- if i!= len(W) - 1:
88
- trained_W[i] = trained_W[i] + w
87
+ trained_W[i] = trained_W[i] + w
89
88
 
90
89
 
91
90
  W = weight_identification(len(layers) - 1, len(class_count), neurons, x_train_size)
plan_di/plan_di.py CHANGED
@@ -1,6 +1,4 @@
1
1
 
2
- import time
3
- from colorama import Fore
4
2
  """
5
3
  Created on Thu Jun 12 00:00:00 2024
6
4
 
@@ -64,13 +62,13 @@ def fit(
64
62
 
65
63
  trained_W = [1] * len(W)
66
64
  print(Fore.GREEN + "Train Started with 0 ERROR" + Style.RESET_ALL)
67
- y = decode_one_hot(y_train)
68
65
  start_time = time.time()
66
+ y = decode_one_hot(y_train)
69
67
  for index, inp in enumerate(x_train):
70
68
  uni_start_time = time.time()
71
69
  inp = np.array(inp)
72
70
  inp = inp.ravel()
73
-
71
+
74
72
  if x_train_size != len(inp):
75
73
  print(Fore.RED + "ERROR304: All input matrices or vectors in x_train list, must be same size. from: fit",
76
74
  infoPLAN + Style.RESET_ALL)
@@ -86,7 +84,6 @@ def fit(
86
84
  W[Lindex] = fex(neural_layer, W[Lindex], True, y[index])
87
85
 
88
86
  for i, w in enumerate(W):
89
- if i!= len(W) - 1:
90
87
  trained_W[i] = trained_W[i] + w
91
88
 
92
89
  W = weight_identification(
@@ -122,7 +119,7 @@ def fit(
122
119
 
123
120
  elif calculating_est > 3600:
124
121
  print('Total training time(h): ', calculating_est/3600)
125
-
122
+
126
123
  return trained_W
127
124
 
128
125
  # FUNCTIONS -----
@@ -521,7 +518,6 @@ def save_model(model_name,
521
518
  model_name (str): Name of the model.
522
519
  model_type (str): Type of the model.(options: PLAN)
523
520
  class_count (int): Number of classes.
524
- activation_potential (float): Activation potential.
525
521
  test_acc (float): Test accuracy of the model.
526
522
  weights_type (str): Type of weights to save (options: 'txt', 'npy', 'mat').
527
523
  WeightFormat (str): Format of the weights (options: 'd', 'f', 'raw').
@@ -1316,5 +1312,4 @@ def get_preds():
1316
1312
 
1317
1313
  def get_acc():
1318
1314
 
1319
- return 2
1320
-
1315
+ return 2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 2.2.6
3
+ Version: 2.2.7
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=ZK2rwYVgYxHygwmgUvb8G1cQ8AHPRm6e2yVHgb9X5Eo,45416
3
+ plan_di/__init__.py,sha256=Omxc07PXPQZOrXBD3PJQT6sPdni6NMykyiQgKVL_IZ0,466
4
+ plan_di/plan_di.py,sha256=nWUc3D9yTDQ6V1TQAGH4Q9F4yKJIndKYGGQPqtysNOU,42786
5
+ pyerualjetwork-2.2.7.dist-info/METADATA,sha256=_XpAwKRGokLPyY5Z5wW3pXLUF9nKFgWDaw510HVKa6E,325
6
+ pyerualjetwork-2.2.7.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ pyerualjetwork-2.2.7.dist-info/top_level.txt,sha256=aaXSOcnD62fbXG1x7tw4nV50Qxx9g9zDNLK7OD4BdPE,16
8
+ pyerualjetwork-2.2.7.dist-info/RECORD,,
@@ -1,8 +0,0 @@
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,,