pyerualjetwork 5.24b0__py3-none-any.whl → 5.26__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.
@@ -42,7 +42,7 @@ PyerualJetwork document: https://github.com/HCB06/PyerualJetwork/blob/main/Welco
42
42
  - Contact: tchasancan@gmail.com
43
43
  """
44
44
 
45
- __version__ = "5.24b0"
45
+ __version__ = "5.26"
46
46
  __update__ = """* Changes: https://github.com/HCB06/PyerualJetwork/blob/main/CHANGES
47
47
  * PyerualJetwork Homepage: https://github.com/HCB06/PyerualJetwork/tree/main
48
48
  * PyerualJetwork document: https://github.com/HCB06/PyerualJetwork/blob/main/Welcome_to_PyerualJetwork/PYERUALJETWORK_USER_MANUEL_AND_LEGAL_INFORMATION(EN).pdf
@@ -202,13 +202,19 @@ def apply_activation(Input, activation_list):
202
202
 
203
203
  try:
204
204
 
205
- valid_mask = cp.array([act in activation_functions for act in activation_list])
206
- valid_activations = np.array(activation_list)[valid_mask.get()]
205
+ if isinstance(activation_list, str):
206
+ activation_list = [activation_list]
207
207
 
208
- activation_outputs = cp.array([activation_functions[act](origin_input) for act in valid_activations])
208
+ activation_list = [str(act).lower() for act in activation_list]
209
209
 
210
- return cp.sum(activation_outputs, axis=0)
211
-
210
+ valid_activations = [act for act in activation_list if act in activation_functions]
211
+
212
+ result = origin_input
213
+ for act in valid_activations:
214
+ result = activation_functions[act](result)
215
+
216
+ return result
217
+
212
218
  except Exception as e:
213
219
  warnings.warn(f"Error in activation processing: {str(e)}", RuntimeWarning)
214
220
  return Input
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 5.24b0
3
+ Version: 5.26
4
4
  Summary: PyereualJetwork is a GPU-accelerated machine learning library in Python for professionals and researchers. It features PLAN, MLP, Deep Learning training, and ENE (Eugenic NeuroEvolution) for genetic optimization, applicable to genetic algorithms or Reinforcement Learning (RL). The library includes data pre-processing, visualizations, model saving/loading, prediction, evaluation, training, and detailed or simplified memory management.
5
5
  Author: Hasan Can Beydili
6
6
  Author-email: tchasancan@gmail.com
@@ -1,6 +1,6 @@
1
- pyerualjetwork/__init__.py,sha256=TDcozKb-RQ6nOJ38W1gc_0ashsaYtcr3jrvCuksuo-I,2735
1
+ pyerualjetwork/__init__.py,sha256=DqL4tpLYw-zpIc6Sf-mc2wq1H2R5R3P0jf0J37h0-YE,2733
2
2
  pyerualjetwork/activation_functions_cpu.py,sha256=axsVRSjw0GuRB709aBwyaNDgAi2vJBIqmJjTmcsCBBY,5743
3
- pyerualjetwork/activation_functions_cuda.py,sha256=7ZN54w4VP0MtFh0LjAUHsuPNgVOxrKeqEwa_zNbRp4g,5699
3
+ pyerualjetwork/activation_functions_cuda.py,sha256=mNlecgmVX9G0_2yQ2_c6XQoMfvcdWIt9b1RUTdoLNBg,5809
4
4
  pyerualjetwork/data_operations_cpu.py,sha256=HemqiYfSdlQKTTYNzpCh_9lTtS3AimMI4DvqJBAGjGw,16186
5
5
  pyerualjetwork/data_operations_cuda.py,sha256=5zgyJGPjQuHyx6IHNkRwMguYhm-GcI6Hal49WNvw-bM,18536
6
6
  pyerualjetwork/ene_cpu.py,sha256=vM-eGAqkiw4U68VmNDMpC5UAmewc8S876VPoyUDcSl4,45163
@@ -20,7 +20,7 @@ pyerualjetwork/neu_cuda.py,sha256=fT8vx-dqG9HZt0iSQUH3ZzRxBPfkEtvISvBy4Y8vR_M,32
20
20
  pyerualjetwork/ui.py,sha256=JBTFYz5R24XwNKhA3GSW-oYAoiIBxAE3kFGXkvm5gqw,656
21
21
  pyerualjetwork/visualizations_cpu.py,sha256=StyD1Hl1Gt55EMqR6tO3yVJZdPyGkOgCnQ75Zn8K6J8,28252
22
22
  pyerualjetwork/visualizations_cuda.py,sha256=7lYrkOdrjwQGB3T4k_vI8UDxsm_TRjzaSSg9GhlNczs,28667
23
- pyerualjetwork-5.24b0.dist-info/METADATA,sha256=JbIsng7VXwGSelM6F2YubL10IpXOopxjnd1xv9bJdvE,8135
24
- pyerualjetwork-5.24b0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
25
- pyerualjetwork-5.24b0.dist-info/top_level.txt,sha256=BRyt62U_r3ZmJpj-wXNOoA345Bzamrj6RbaWsyW4tRg,15
26
- pyerualjetwork-5.24b0.dist-info/RECORD,,
23
+ pyerualjetwork-5.26.dist-info/METADATA,sha256=y3NZzX7Xbl0HpsLdgGp6cGtuRe_YB1GRBD6E68nqCCo,8133
24
+ pyerualjetwork-5.26.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
25
+ pyerualjetwork-5.26.dist-info/top_level.txt,sha256=BRyt62U_r3ZmJpj-wXNOoA345Bzamrj6RbaWsyW4tRg,15
26
+ pyerualjetwork-5.26.dist-info/RECORD,,