pyerualjetwork 4.2.9b2__py3-none-any.whl → 4.2.9b4__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.
@@ -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
@@ -1,4 +1,4 @@
1
- pyerualjetwork/__init__.py,sha256=wpQgoui5aJLcta63lgtBwP6OWAb0xzdERannJ7MV_C4,641
1
+ pyerualjetwork/__init__.py,sha256=2a40auUKSzMVoDiHciv5v8e42OYR8PUthWnNDwdXhOk,641
2
2
  pyerualjetwork/activation_functions.py,sha256=WWOdMd5pI6ZKe-ieKCIsKAYPQODHuXYxx7tzhA5xjes,11767
3
3
  pyerualjetwork/activation_functions_cuda.py,sha256=KmXJ5Cdig46XAMYakXFPEOlxSxtFJjD21-i3nGtxPjE,11807
4
4
  pyerualjetwork/data_operations.py,sha256=pb5CqJ0Th6fCjTNMCtqQMiwH3KezTxAijacglsKUxmY,14730
@@ -12,13 +12,13 @@ pyerualjetwork/metrics_cuda.py,sha256=73h9GC7XwmnFCVzFEEiPQfF8CwHIz2wsCbxpZrJtYg
12
12
  pyerualjetwork/model_operations.py,sha256=RKqnh7-MByFosxqme4q4jC1lOndX26O-OVXYV6ZxoEE,12965
13
13
  pyerualjetwork/model_operations_cuda.py,sha256=XnKKq54ZLaqCm-NaJ6d8IToACKcKg2Ttq6moowVRRWo,13365
14
14
  pyerualjetwork/plan.py,sha256=UzCTFCA9cTv9ITCtsqfJ1g02rCMyescoIV6j1amvYGw,32134
15
- pyerualjetwork/plan_cuda.py,sha256=uF762Lb-9F3vwuOqVJfl93II7rzxASBlZvolCmj9Mns,33070
15
+ pyerualjetwork/plan_cuda.py,sha256=gV6FPk3pDc8nzZl0lMv3gHWQfPkU4_LAaF9KEETs2Lc,33428
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.9b2.dist-info/METADATA,sha256=0wVo_A2myMtqqLrlw278Hgw5b4BgkKRSbebFlhLDnro,7454
22
- pyerualjetwork-4.2.9b2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
23
- pyerualjetwork-4.2.9b2.dist-info/top_level.txt,sha256=BRyt62U_r3ZmJpj-wXNOoA345Bzamrj6RbaWsyW4tRg,15
24
- pyerualjetwork-4.2.9b2.dist-info/RECORD,,
21
+ pyerualjetwork-4.2.9b4.dist-info/METADATA,sha256=9za3MJ6A_hmg026Nrd4yKuC3GRH0uCTyFCZyTZq_f-8,7454
22
+ pyerualjetwork-4.2.9b4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
23
+ pyerualjetwork-4.2.9b4.dist-info/top_level.txt,sha256=BRyt62U_r3ZmJpj-wXNOoA345Bzamrj6RbaWsyW4tRg,15
24
+ pyerualjetwork-4.2.9b4.dist-info/RECORD,,