pyerualjetwork 4.2.9b2__tar.gz → 4.2.9b4__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 (28) hide show
  1. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/PKG-INFO +1 -1
  2. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/__init__.py +1 -1
  3. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/plan_cuda.py +15 -3
  4. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork.egg-info/PKG-INFO +1 -1
  5. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/setup.py +1 -1
  6. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/README.md +0 -0
  7. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/activation_functions.py +0 -0
  8. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/activation_functions_cuda.py +0 -0
  9. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/data_operations.py +0 -0
  10. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/data_operations_cuda.py +0 -0
  11. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/help.py +0 -0
  12. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/loss_functions.py +0 -0
  13. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/loss_functions_cuda.py +0 -0
  14. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/memory_operations.py +0 -0
  15. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/metrics.py +0 -0
  16. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/metrics_cuda.py +0 -0
  17. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/model_operations.py +0 -0
  18. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/model_operations_cuda.py +0 -0
  19. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/plan.py +0 -0
  20. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/planeat.py +0 -0
  21. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/planeat_cuda.py +0 -0
  22. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/ui.py +0 -0
  23. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/visualizations.py +0 -0
  24. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork/visualizations_cuda.py +0 -0
  25. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork.egg-info/SOURCES.txt +0 -0
  26. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork.egg-info/dependency_links.txt +0 -0
  27. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/pyerualjetwork.egg-info/top_level.txt +0 -0
  28. {pyerualjetwork-4.2.9b2 → pyerualjetwork-4.2.9b4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 4.2.9b2
3
+ Version: 4.2.9b4
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.2.9b2"
1
+ __version__ = "4.2.9b4"
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__):
@@ -598,6 +598,17 @@ def evaluate(
598
598
  tuple: Model (list).
599
599
  """
600
600
 
601
+ if memory == 'gpu':
602
+ x_test = transfer_to_gpu(x_test, dtype=dtype)
603
+ y_test = transfer_to_gpu(y_test, dtype=y_test.dtype)
604
+
605
+ elif memory == 'cpu':
606
+ x_test = transfer_to_cpu(x_test, dtype=dtype)
607
+ y_test = transfer_to_cpu(y_test, dtype=y_test.dtype)
608
+
609
+ else:
610
+ raise ValueError("memory parameter must be 'cpu' or 'gpu'.")
611
+
601
612
  predict_probabilitys = cp.empty((len(x_test), W.shape[0]), dtype=dtype)
602
613
  real_classes = cp.empty(len(x_test), dtype=y_test.dtype)
603
614
  predict_classes = cp.empty(len(x_test), dtype=y_test.dtype)
@@ -621,16 +632,17 @@ def evaluate(
621
632
  PredictedOutput = cp.argmax(neural_layer)
622
633
  predict_classes[inpIndex] = PredictedOutput
623
634
 
635
+ """
624
636
  if RealOutput == PredictedOutput:
625
637
  true_predict += 1
626
638
 
627
639
  acc = true_predict / (inpIndex + 1)
628
640
  acc_list[inpIndex] = acc
629
-
641
+ """
630
642
  if loading_bar_status:
631
643
  loading_bar.update(1)
632
- loading_bar.set_postfix({"Test Accuracy": acc})
633
-
644
+
645
+
634
646
  if loading_bar_status:
635
647
  loading_bar.close()
636
648
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyerualjetwork
3
- Version: 4.2.9b2
3
+ Version: 4.2.9b4
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.2.9b2",
9
+ version="4.2.9b4",
10
10
  author="Hasan Can Beydili",
11
11
  author_email="tchasancan@gmail.com",
12
12
  description=(