pyerualjetwork 4.2.8__py3-none-any.whl → 4.2.9__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/activation_functions.py +2 -0
- pyerualjetwork/activation_functions_cuda.py +2 -3
- pyerualjetwork/data_operations.py +2 -3
- pyerualjetwork/plan.py +2 -2
- {pyerualjetwork-4.2.8.dist-info → pyerualjetwork-4.2.9.dist-info}/METADATA +1 -1
- {pyerualjetwork-4.2.8.dist-info → pyerualjetwork-4.2.9.dist-info}/RECORD +9 -9
- {pyerualjetwork-4.2.8.dist-info → pyerualjetwork-4.2.9.dist-info}/WHEEL +0 -0
- {pyerualjetwork-4.2.8.dist-info → pyerualjetwork-4.2.9.dist-info}/top_level.txt +0 -0
pyerualjetwork/__init__.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
__version__ = "4.2.
|
1
|
+
__version__ = "4.2.9"
|
2
2
|
__update__ = "* Changes: https://github.com/HCB06/PyerualJetwork/blob/main/CHANGES\n* PyerualJetwork Homepage: https://github.com/HCB06/PyerualJetwork/tree/main\n* PyerualJetwork document: https://github.com/HCB06/PyerualJetwork/blob/main/Welcome_to_PyerualJetwork/PYERUALJETWORK_USER_MANUEL_AND_LEGAL_INFORMATION(EN).pdf\n* YouTube tutorials: https://www.youtube.com/@HasanCanBeydili"
|
3
3
|
|
4
4
|
def print_version(__version__):
|
@@ -218,12 +218,14 @@ def scaled_cubic(x, alpha=1.0):
|
|
218
218
|
def sine_offset(x, beta=0.0):
|
219
219
|
return np.sin(x + beta)
|
220
220
|
|
221
|
+
|
221
222
|
def safe_add(current_sum, new_value):
|
222
223
|
try:
|
223
224
|
return current_sum + new_value
|
224
225
|
except OverflowError:
|
225
226
|
return np.array(current_sum) + np.array(new_value)
|
226
227
|
|
228
|
+
|
227
229
|
def apply_activation(Input, activation_list):
|
228
230
|
"""
|
229
231
|
Applies a sequence of activation functions to the input.
|
@@ -218,7 +218,6 @@ def sine_offset(x, beta=0.0):
|
|
218
218
|
return cp.sin(x + beta)
|
219
219
|
|
220
220
|
|
221
|
-
|
222
221
|
def safe_add(current_sum, new_value):
|
223
222
|
try:
|
224
223
|
return current_sum + new_value
|
@@ -230,11 +229,11 @@ def apply_activation(Input, activation_list):
|
|
230
229
|
Applies a sequence of activation functions to the input.
|
231
230
|
|
232
231
|
Args:
|
233
|
-
Input (
|
232
|
+
Input (cupy.ndarray): The input to apply activations to.
|
234
233
|
activation_list (list): A list of activation function names to apply.
|
235
234
|
|
236
235
|
Returns:
|
237
|
-
|
236
|
+
cupy.ndarray: The input after all activations have been applied.
|
238
237
|
"""
|
239
238
|
|
240
239
|
origin_input = cp.copy(Input)
|
@@ -55,9 +55,8 @@ def decode_one_hot(encoded_data):
|
|
55
55
|
numpy.ndarray: Decoded categorical labels with shape (n_samples,).
|
56
56
|
"""
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
return decoded_labels
|
58
|
+
if encoded_data.ndim == 1: return np.argmax(encoded_data)
|
59
|
+
else: return np.argmax(encoded_data, axis=1)
|
61
60
|
|
62
61
|
|
63
62
|
def split(X, y, test_size, random_state=42, dtype=np.float32):
|
pyerualjetwork/plan.py
CHANGED
@@ -135,9 +135,9 @@ def fit(
|
|
135
135
|
# Training process
|
136
136
|
for index, inp in enumerate(x_train):
|
137
137
|
inp = np.array(inp, copy=False).ravel()
|
138
|
-
y_decoded = decode_one_hot(y_train)
|
138
|
+
y_decoded = decode_one_hot(y_train[index])
|
139
139
|
# Weight updates
|
140
|
-
STPW = feed_forward(inp, STPW, is_training=True, Class=y_decoded
|
140
|
+
STPW = feed_forward(inp, STPW, is_training=True, Class=y_decoded, activation_potentiation=activation_potentiation, LTD=LTD)
|
141
141
|
LTPW += normalization(STPW, dtype=dtype) if auto_normalization else STPW
|
142
142
|
if val and index != 0:
|
143
143
|
if index % math.ceil((val_count / len(x_train)) * 100) == 0:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pyerualjetwork
|
3
|
-
Version: 4.2.
|
3
|
+
Version: 4.2.9
|
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,7 +1,7 @@
|
|
1
|
-
pyerualjetwork/__init__.py,sha256=
|
2
|
-
pyerualjetwork/activation_functions.py,sha256=
|
3
|
-
pyerualjetwork/activation_functions_cuda.py,sha256=
|
4
|
-
pyerualjetwork/data_operations.py,sha256=
|
1
|
+
pyerualjetwork/__init__.py,sha256=cSSRzg1vByQssMGXt65jQxrvHcdfiXqJKKQqgRMMGSE,639
|
2
|
+
pyerualjetwork/activation_functions.py,sha256=eLEesmMgDvkI1TqaLTpqtOgTaLbHEAyw-D57KIKd9G4,11775
|
3
|
+
pyerualjetwork/activation_functions_cuda.py,sha256=ztIw6rMR4t1289_TPIGYwE6qarl_YbSOGj5Ep3rUMqs,11803
|
4
|
+
pyerualjetwork/data_operations.py,sha256=Flteouu6rfSo2uHMqBHuzO02dXmbNa-I5qWmUpGTZ5Y,14760
|
5
5
|
pyerualjetwork/data_operations_cuda.py,sha256=UpoJoFhIwTU4xg9dVuLAxLAT4CkRaGsxvtJG9j1xrNo,17629
|
6
6
|
pyerualjetwork/help.py,sha256=nQ_YbYA2RtuafhuvkreNpX0WWL1I_nzlelwCtvei0_Y,775
|
7
7
|
pyerualjetwork/loss_functions.py,sha256=6PyBI232SQRGuFnG3LDGvnv_PUdWzT2_2mUODJiejGI,618
|
@@ -11,14 +11,14 @@ pyerualjetwork/metrics.py,sha256=q7MkhnZDRbCjFBDDfUgrl8lBYnUT_1ro1LxeBq105pI,607
|
|
11
11
|
pyerualjetwork/metrics_cuda.py,sha256=73h9GC7XwmnFCVzFEEiPQfF8CwHIz2wsCbxpZrJtYgw,5061
|
12
12
|
pyerualjetwork/model_operations.py,sha256=RKqnh7-MByFosxqme4q4jC1lOndX26O-OVXYV6ZxoEE,12965
|
13
13
|
pyerualjetwork/model_operations_cuda.py,sha256=XnKKq54ZLaqCm-NaJ6d8IToACKcKg2Ttq6moowVRRWo,13365
|
14
|
-
pyerualjetwork/plan.py,sha256=
|
14
|
+
pyerualjetwork/plan.py,sha256=x66wxPIVO19dLDQT6-KVFVr6PYHW3Eqj-ni8kGY3N_c,32134
|
15
15
|
pyerualjetwork/plan_cuda.py,sha256=hpXZl3h7B1qAVYW-gZebwKMZd4-ftAZ-u05teOJjsno,33525
|
16
16
|
pyerualjetwork/planeat.py,sha256=t6qyuMB2c5n8lsAJooEpShzEnw2GvepBI0bpLMx0DUI,39440
|
17
17
|
pyerualjetwork/planeat_cuda.py,sha256=UBdbAk87M5zEZzZlRBeOzW-q0Sy8c_XWl4zdrtDnyIs,39499
|
18
18
|
pyerualjetwork/ui.py,sha256=wu2BhU1k-w3Kcho5Jtq4SEKe68ftaUeRGneUOSCVDjU,575
|
19
19
|
pyerualjetwork/visualizations.py,sha256=1SKMZaJ80OD2qHUyMxW1IOv8zwmxzMPxclfbeq1Xr4g,28772
|
20
20
|
pyerualjetwork/visualizations_cuda.py,sha256=KbMhfsLlxujy_i3QrwCf734Q-k6d7Zn_7CEbm3gzK9w,29186
|
21
|
-
pyerualjetwork-4.2.
|
22
|
-
pyerualjetwork-4.2.
|
23
|
-
pyerualjetwork-4.2.
|
24
|
-
pyerualjetwork-4.2.
|
21
|
+
pyerualjetwork-4.2.9.dist-info/METADATA,sha256=OdylvYMVTVNn7_kzzMBeJ7312sRwF4ABJ6jqq0vE7rg,7452
|
22
|
+
pyerualjetwork-4.2.9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
23
|
+
pyerualjetwork-4.2.9.dist-info/top_level.txt,sha256=BRyt62U_r3ZmJpj-wXNOoA345Bzamrj6RbaWsyW4tRg,15
|
24
|
+
pyerualjetwork-4.2.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|