pyerualjetwork 4.6__py3-none-any.whl → 4.6.1b0__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.
- pyerualjetwork/__init__.py +1 -1
- pyerualjetwork/model_operations.py +17 -10
- pyerualjetwork/model_operations_cuda.py +19 -13
- {pyerualjetwork-4.6.dist-info → pyerualjetwork-4.6.1b0.dist-info}/METADATA +1 -1
- {pyerualjetwork-4.6.dist-info → pyerualjetwork-4.6.1b0.dist-info}/RECORD +7 -7
- {pyerualjetwork-4.6.dist-info → pyerualjetwork-4.6.1b0.dist-info}/WHEEL +0 -0
- {pyerualjetwork-4.6.dist-info → pyerualjetwork-4.6.1b0.dist-info}/top_level.txt +0 -0
pyerualjetwork/__init__.py
CHANGED
@@ -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
|
-
|
77
|
-
|
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
|
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
|
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
|
-
|
81
|
-
|
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
|
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
|
-
|
98
|
-
|
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
|
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
|
@@ -1,4 +1,4 @@
|
|
1
|
-
pyerualjetwork/__init__.py,sha256=
|
1
|
+
pyerualjetwork/__init__.py,sha256=iS07tu-qBxUf0BbzlgGOwdjZJa2LhYDX-YwH6u-yY90,1281
|
2
2
|
pyerualjetwork/activation_functions.py,sha256=Ms0AGBqkJuCA42ht64MSQnO54Td_1eDGquedpoBDVbc,7642
|
3
3
|
pyerualjetwork/activation_functions_cuda.py,sha256=5y1Ti3GDfDteQDCUmODwe7tAyDAUlDTKmIikChQ8d6g,7772
|
4
4
|
pyerualjetwork/data_operations.py,sha256=TxfpwHWUpJ2E7IVF2uSmigrwpVL_JxrvGPOrMg2lNuI,15981
|
@@ -10,8 +10,8 @@ pyerualjetwork/loss_functions_cuda.py,sha256=C93IZJcrOpT6HMK9x1O4AHJWXYTkN5WZiqd
|
|
10
10
|
pyerualjetwork/memory_operations.py,sha256=0yCOHcgiNyF4ccMcRlL1Q9F_byG4nzjhmkbpXE_yU6E,13401
|
11
11
|
pyerualjetwork/metrics.py,sha256=q7MkhnZDRbCjFBDDfUgrl8lBYnUT_1ro1LxeBq105pI,6077
|
12
12
|
pyerualjetwork/metrics_cuda.py,sha256=73h9GC7XwmnFCVzFEEiPQfF8CwHIz2wsCbxpZrJtYgw,5061
|
13
|
-
pyerualjetwork/model_operations.py,sha256=
|
14
|
-
pyerualjetwork/model_operations_cuda.py,sha256
|
13
|
+
pyerualjetwork/model_operations.py,sha256=ZjLQrYYbzBtTyEfrH9_gouq-m8r_XawRAO2ohkjYd4U,15500
|
14
|
+
pyerualjetwork/model_operations_cuda.py,sha256=-ag0HjlNFxnhcVY2xHFYqQzxDxyzPfiXl0aTRUSVOnM,16112
|
15
15
|
pyerualjetwork/plan.py,sha256=UyIvPmvHCHwczlc9KHolE4y6CPEeBfhnRN5yznSbnoM,23028
|
16
16
|
pyerualjetwork/plan_cuda.py,sha256=iteqgv7x9Z2Pj4vGOZs6HXS3r0bNaF_smr7ZXaOdRnw,23990
|
17
17
|
pyerualjetwork/planeat.py,sha256=hZIzDbdRjyCA-wdraD0yJyG-Y8J2KadEqlITs-M_jPQ,45281
|
@@ -19,7 +19,7 @@ pyerualjetwork/planeat_cuda.py,sha256=uOvhTxG36jVu8_uHN8jSxGQqbwpSIPKqbXT1sFl0kU
|
|
19
19
|
pyerualjetwork/ui.py,sha256=JBTFYz5R24XwNKhA3GSW-oYAoiIBxAE3kFGXkvm5gqw,656
|
20
20
|
pyerualjetwork/visualizations.py,sha256=utnX9zQhzmtvBJLOLNGm2jecVVk4zHXABQdjb0XzJac,28352
|
21
21
|
pyerualjetwork/visualizations_cuda.py,sha256=gnoaaazZ-nc9E1ImqXrZBRgQ4Rnpi2qh2yGJ2eLKMlE,28807
|
22
|
-
pyerualjetwork-4.6.dist-info/METADATA,sha256=
|
23
|
-
pyerualjetwork-4.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
24
|
-
pyerualjetwork-4.6.dist-info/top_level.txt,sha256=BRyt62U_r3ZmJpj-wXNOoA345Bzamrj6RbaWsyW4tRg,15
|
25
|
-
pyerualjetwork-4.6.dist-info/RECORD,,
|
22
|
+
pyerualjetwork-4.6.1b0.dist-info/METADATA,sha256=qLfRiea4Z7tUreDfotddrbNOawMDUWz5dCPotOz0u7w,7507
|
23
|
+
pyerualjetwork-4.6.1b0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
24
|
+
pyerualjetwork-4.6.1b0.dist-info/top_level.txt,sha256=BRyt62U_r3ZmJpj-wXNOoA345Bzamrj6RbaWsyW4tRg,15
|
25
|
+
pyerualjetwork-4.6.1b0.dist-info/RECORD,,
|
File without changes
|
File without changes
|