pyerualjetwork 5.21b0__tar.gz → 5.21b2__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 (30) hide show
  1. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/PKG-INFO +1 -1
  2. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/__init__.py +1 -1
  3. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/activation_functions_cuda.py +5 -11
  4. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/neu_cpu.py +2 -3
  5. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork.egg-info/PKG-INFO +1 -1
  6. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/setup.py +1 -1
  7. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/README.md +0 -0
  8. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/activation_functions_cpu.py +0 -0
  9. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/data_operations_cpu.py +0 -0
  10. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/data_operations_cuda.py +0 -0
  11. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/ene_cpu.py +0 -0
  12. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/ene_cuda.py +0 -0
  13. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/fitness_functions.py +0 -0
  14. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/help.py +0 -0
  15. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/issue_solver.py +0 -0
  16. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/loss_functions_cpu.py +0 -0
  17. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/loss_functions_cuda.py +0 -0
  18. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/memory_operations.py +0 -0
  19. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/metrics_cpu.py +0 -0
  20. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/metrics_cuda.py +0 -0
  21. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/model_operations_cpu.py +0 -0
  22. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/model_operations_cuda.py +0 -0
  23. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/neu_cuda.py +0 -0
  24. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/ui.py +0 -0
  25. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/visualizations_cpu.py +0 -0
  26. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork/visualizations_cuda.py +0 -0
  27. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork.egg-info/SOURCES.txt +0 -0
  28. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork.egg-info/dependency_links.txt +0 -0
  29. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/pyerualjetwork.egg-info/top_level.txt +0 -0
  30. {pyerualjetwork-5.21b0 → pyerualjetwork-5.21b2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 5.21b0
3
+ Version: 5.21b2
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
@@ -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.21b0"
45
+ __version__ = "5.21b2"
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
@@ -198,16 +198,10 @@ def apply_activation(Input, activation_list):
198
198
  'spiral': spiral_activation,
199
199
  'circular': circular_activation
200
200
  }
201
-
202
- try:
203
-
204
- valid_mask = cp.array([act in activation_functions for act in activation_list])
205
- valid_activations = cp.array(activation_list)[valid_mask]
206
201
 
207
- activation_outputs = cp.array([activation_functions[act](origin_input) for act in valid_activations])
202
+ valid_mask = cp.array([act in activation_functions for act in activation_list])
203
+ valid_activations = cp.array(activation_list)[valid_mask]
208
204
 
209
- return cp.sum(activation_outputs, axis=0)
210
-
211
- except Exception as e:
212
- warnings.warn(f"Error in activation processing: {str(e)}", RuntimeWarning)
213
- return Input
205
+ activation_outputs = cp.array([activation_functions[act](origin_input) for act in valid_activations])
206
+
207
+ return cp.sum(activation_outputs, axis=0)
@@ -451,9 +451,8 @@ def learn(x_train, y_train, optimizer, gen, pop_size, fit_start=True, batch_size
451
451
  if model_type == 'PLAN': weight_pop = np.array(weight_pop, copy=False, dtype=dtype)
452
452
  else: weight_pop = np.array(weight_pop, copy=False, dtype=object)
453
453
 
454
- if i != len(gen) -1:
455
- weight_pop, act_pop = optimizer(weight_pop, act_pop, i, np.array(target_pop, dtype=dtype, copy=False), weight_evolve=weight_evolve, is_mlp=is_mlp, bar_status=False)
456
- target_pop = []
454
+ weight_pop, act_pop = optimizer(weight_pop, act_pop, i, np.array(target_pop, dtype=dtype, copy=False), weight_evolve=weight_evolve, is_mlp=is_mlp, bar_status=False)
455
+ target_pop = []
457
456
 
458
457
  # Early stopping check
459
458
  if early_stop == True and i > 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 5.21b0
3
+ Version: 5.21b2
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
@@ -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="5.21b0",
9
+ version="5.21b2",
10
10
  author="Hasan Can Beydili",
11
11
  author_email="tchasancan@gmail.com",
12
12
  description=(