pyerualjetwork 4.6__tar.gz → 4.6.1b0__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.
Files changed (29) hide show
  1. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/PKG-INFO +1 -1
  2. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/__init__.py +1 -1
  3. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/model_operations.py +17 -10
  4. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/model_operations_cuda.py +19 -13
  5. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork.egg-info/PKG-INFO +1 -1
  6. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/setup.py +1 -1
  7. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/README.md +0 -0
  8. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/activation_functions.py +0 -0
  9. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/activation_functions_cuda.py +0 -0
  10. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/data_operations.py +0 -0
  11. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/data_operations_cuda.py +0 -0
  12. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/fitness_functions.py +0 -0
  13. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/help.py +0 -0
  14. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/loss_functions.py +0 -0
  15. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/loss_functions_cuda.py +0 -0
  16. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/memory_operations.py +0 -0
  17. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/metrics.py +0 -0
  18. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/metrics_cuda.py +0 -0
  19. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/plan.py +0 -0
  20. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/plan_cuda.py +0 -0
  21. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/planeat.py +0 -0
  22. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/planeat_cuda.py +0 -0
  23. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/ui.py +0 -0
  24. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/visualizations.py +0 -0
  25. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork/visualizations_cuda.py +0 -0
  26. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork.egg-info/SOURCES.txt +0 -0
  27. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork.egg-info/dependency_links.txt +0 -0
  28. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/pyerualjetwork.egg-info/top_level.txt +0 -0
  29. {pyerualjetwork-4.6 → pyerualjetwork-4.6.1b0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 4.6
3
+ Version: 4.6.1b0
4
4
  Summary: PyerualJetwork is a machine learning library supported with GPU(CUDA) acceleration written in Python for professionals and researchers including with PLAN algorithm, PLANEAT algorithm (genetic optimization). Also includes data pre-process and memory manegament
5
5
  Author: Hasan Can Beydili
6
6
  Author-email: tchasancan@gmail.com
@@ -1,4 +1,4 @@
1
- __version__ = "4.6"
1
+ __version__ = "4.6.1b0"
2
2
  __update__ = """* Changes: https://github.com/HCB06/PyerualJetwork/blob/main/CHANGES
3
3
  * PyerualJetwork Homepage: https://github.com/HCB06/PyerualJetwork/tree/main
4
4
  * PyerualJetwork document: https://github.com/HCB06/PyerualJetwork/blob/main/Welcome_to_PyerualJetwork/PYERUALJETWORK_USER_MANUEL_AND_LEGAL_INFORMATION(EN).pdf
@@ -66,26 +66,24 @@ def save_model(model_name,
66
66
  print(Fore.RED + "ERROR111: Weight Format Type must be 'd' or 'f' or 'raw' from: save_model" + Style.RESET_ALL)
67
67
  sys.exit()
68
68
 
69
+ NeuronCount = []
70
+ SynapseCount = []
71
+
69
72
  if model_type == 'PLAN':
70
73
  class_count = W.shape[0]
71
74
 
72
- NeuronCount = 0
73
- SynapseCount = 0
74
-
75
75
  try:
76
- NeuronCount += np.shape(W)[0] + np.shape(W)[1]
77
- SynapseCount += np.shape(W)[0] * np.shape(W)[1]
76
+ NeuronCount.append(np.shape(W)[1])
77
+ NeuronCount.append(np.shape(W)[0])
78
+ SynapseCount.append(np.shape(W)[0] * np.shape(W)[1])
78
79
  except:
79
80
 
80
- print(Fore.RED + "ERROR: Weight matrices has a problem from: save_model" + Style.RESET_ALL)
81
+ print(Fore.RED + "ERROR: Weight matrices have a problem from: save_model" + Style.RESET_ALL)
81
82
  sys.exit()
82
83
 
83
84
  elif model_type == 'MLP':
84
85
  class_count = W[-1].shape[0]
85
86
 
86
- NeuronCount = []
87
- SynapseCount = []
88
-
89
87
  NeuronCount.append(np.shape(W[0])[1])
90
88
 
91
89
  for i in range(len(W)):
@@ -94,7 +92,7 @@ def save_model(model_name,
94
92
  SynapseCount.append(np.shape(W[i])[0] * np.shape(W[i])[1])
95
93
  except:
96
94
 
97
- print(Fore.RED + "ERROR: Weight matrices has a problem from: save_model" + Style.RESET_ALL)
95
+ print(Fore.RED + "ERROR: Weight matrices have a problem from: save_model" + Style.RESET_ALL)
98
96
  sys.exit()
99
97
 
100
98
  SynapseCount.append(' ')
@@ -106,6 +104,15 @@ def save_model(model_name,
106
104
  activation_potentiation = [activation_potentiation]
107
105
  activation_potentiation.append('')
108
106
 
107
+ if len(activation_potentiation) > len(NeuronCount):
108
+ for i in range(len(activation_potentiation) - len(NeuronCount)):
109
+ NeuronCount.append('')
110
+
111
+ if len(activation_potentiation) > len(SynapseCount):
112
+ for i in range(len(activation_potentiation) - len(SynapseCount)):
113
+ SynapseCount.append('')
114
+
115
+
109
116
  if scaler_params != None:
110
117
 
111
118
  if len(scaler_params) > len(activation_potentiation):
@@ -69,36 +69,34 @@ def save_model(model_name,
69
69
  if weights_format != 'd' and weights_format != 'f' and weights_format != 'raw':
70
70
  print(Fore.RED + "ERROR111: Weight Format Type must be 'd' or 'f' or 'raw' from: save_model" + Style.RESET_ALL)
71
71
  sys.exit()
72
+
73
+ NeuronCount = []
74
+ SynapseCount = []
72
75
 
73
76
  if model_type == 'PLAN':
74
77
  class_count = W.shape[0]
75
-
76
- NeuronCount = 0
77
- SynapseCount = 0
78
-
78
+
79
79
  try:
80
- NeuronCount += cp.shape(W)[0] + cp.shape(W)[1]
81
- SynapseCount += cp.shape(W)[0] * cp.shape(W)[1]
80
+ NeuronCount.append(cp.shape(W)[1])
81
+ NeuronCount.append(cp.shape(W)[0])
82
+ SynapseCount.append(cp.shape(W)[0] * cp.shape(W)[1])
82
83
  except:
83
84
 
84
- print(Fore.RED + "ERROR: Weight matrices has a problem from: save_model" + Style.RESET_ALL)
85
+ print(Fore.RED + "ERROR: Weight matrices have a problem from: save_model" + Style.RESET_ALL)
85
86
  sys.exit()
86
87
 
87
88
  elif model_type == 'MLP':
88
89
  class_count = W[-1].shape[0]
89
90
 
90
- NeuronCount = []
91
- SynapseCount = []
92
-
93
91
  NeuronCount.append(cp.shape(W[0])[1])
94
92
 
95
93
  for i in range(len(W)):
96
94
  try:
97
- NeuronCount.append(cp.shape(W[i])[0])
98
- SynapseCount.append(cp.shape(W[i])[0] * cp.shape(W[i])[1])
95
+ NeuronCount.append(cp.shape(W[i])[0])
96
+ SynapseCount.append(cp.shape(W[i])[0] * cp.shape(W[i])[1])
99
97
  except:
100
98
 
101
- print(Fore.RED + "ERROR: Weight matrices has a problem from: save_model" + Style.RESET_ALL)
99
+ print(Fore.RED + "ERROR: Weight matrices have a problem from: save_model" + Style.RESET_ALL)
102
100
  sys.exit()
103
101
 
104
102
  SynapseCount.append(' ')
@@ -110,6 +108,14 @@ def save_model(model_name,
110
108
  activation_potentiation = [activation_potentiation]
111
109
  activation_potentiation.append('')
112
110
 
111
+ if len(activation_potentiation) > len(NeuronCount):
112
+ for i in range(len(activation_potentiation) - len(NeuronCount)):
113
+ NeuronCount.append('')
114
+
115
+ if len(activation_potentiation) > len(SynapseCount):
116
+ for i in range(len(activation_potentiation) - len(SynapseCount)):
117
+ SynapseCount.append('')
118
+
113
119
  if scaler_params != None:
114
120
 
115
121
  if len(scaler_params) > len(activation_potentiation):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 4.6
3
+ Version: 4.6.1b0
4
4
  Summary: PyerualJetwork is a machine learning library supported with GPU(CUDA) acceleration written in Python for professionals and researchers including with PLAN algorithm, PLANEAT algorithm (genetic optimization). Also includes data pre-process and memory manegament
5
5
  Author: Hasan Can Beydili
6
6
  Author-email: tchasancan@gmail.com
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
6
6
  # Setting Up
7
7
  setup(
8
8
  name="pyerualjetwork",
9
- version="4.6",
9
+ version="4.6.1b0",
10
10
  author="Hasan Can Beydili",
11
11
  author_email="tchasancan@gmail.com",
12
12
  description=(
File without changes
File without changes