pyerualjetwork 5.1__py3-none-any.whl → 5.5__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 +15 -14
- pyerualjetwork/cpu/__init__.py +24 -0
- pyerualjetwork/{activation_functions_cpu.py → cpu/activation_functions.py} +40 -4
- pyerualjetwork/{data_operations_cpu.py → cpu/data_ops.py} +17 -19
- pyerualjetwork/{metrics_cpu.py → cpu/metrics.py} +3 -1
- pyerualjetwork/{visualizations_cpu.py → cpu/visualizations.py} +96 -139
- pyerualjetwork/cuda/__init__.py +24 -0
- pyerualjetwork/{activation_functions_cuda.py → cuda/activation_functions.py} +54 -5
- pyerualjetwork/{data_operations_cuda.py → cuda/data_ops.py} +16 -16
- pyerualjetwork/{metrics_cuda.py → cuda/metrics.py} +1 -1
- pyerualjetwork/{visualizations_cuda.py → cuda/visualizations.py} +8 -244
- pyerualjetwork/{ene_cpu.py → ene.py} +29 -95
- pyerualjetwork/fitness_functions.py +0 -1
- pyerualjetwork/help.py +5 -5
- pyerualjetwork/issue_solver.py +39 -11
- pyerualjetwork/{memory_operations.py → memory_ops.py} +1 -1
- pyerualjetwork/model_ops.py +734 -0
- pyerualjetwork/{neu_cpu.py → nn.py} +199 -91
- pyerualjetwork/{model_operations_cpu.py → old_cpu_model_ops.py} +62 -59
- pyerualjetwork/{model_operations_cuda.py → old_cuda_model_ops.py} +99 -86
- {pyerualjetwork-5.1.dist-info → pyerualjetwork-5.5.dist-info}/METADATA +16 -18
- pyerualjetwork-5.5.dist-info/RECORD +27 -0
- pyerualjetwork/ene_cuda.py +0 -962
- pyerualjetwork/neu_cuda.py +0 -588
- pyerualjetwork-5.1.dist-info/RECORD +0 -26
- /pyerualjetwork/{loss_functions_cpu.py → cpu/loss_functions.py} +0 -0
- /pyerualjetwork/{loss_functions_cuda.py → cuda/loss_functions.py} +0 -0
- {pyerualjetwork-5.1.dist-info → pyerualjetwork-5.5.dist-info}/WHEEL +0 -0
- {pyerualjetwork-5.1.dist-info → pyerualjetwork-5.5.dist-info}/top_level.txt +0 -0
pyerualjetwork/issue_solver.py
CHANGED
@@ -9,7 +9,7 @@ ensuring users are not affected by such problems. PyereualJetwork aims to offer
|
|
9
9
|
|
10
10
|
Module functions:
|
11
11
|
-----------------
|
12
|
-
-
|
12
|
+
- update_model_to_v5_4()
|
13
13
|
|
14
14
|
Examples: https://github.com/HCB06/PyerualJetwork/tree/main/Welcome_to_PyerualJetwork/ExampleCodes
|
15
15
|
|
@@ -22,10 +22,10 @@ PyerualJetwork document: https://github.com/HCB06/PyerualJetwork/blob/main/Welco
|
|
22
22
|
- Contact: tchasancan@gmail.com
|
23
23
|
"""
|
24
24
|
|
25
|
-
def
|
25
|
+
def update_model_to_v5_4(model_name, model_path, is_cuda):
|
26
26
|
|
27
27
|
"""
|
28
|
-
|
28
|
+
update_model_to_v5_4 function helps users for update models from older versions to newer versions.
|
29
29
|
|
30
30
|
:param str model_name: Name of saved model.
|
31
31
|
|
@@ -36,28 +36,34 @@ def update_model_to_v5(model_name, model_path, is_cuda):
|
|
36
36
|
:return: prints terminal if succes.
|
37
37
|
"""
|
38
38
|
|
39
|
+
from .model_ops import save_model
|
40
|
+
|
39
41
|
if is_cuda:
|
40
42
|
|
41
|
-
from .
|
43
|
+
from .old_cuda_model_ops import (get_act,
|
42
44
|
get_weights,
|
43
45
|
get_scaler,
|
44
46
|
get_acc,
|
45
47
|
get_model_type,
|
46
48
|
get_weights_type,
|
47
49
|
get_weights_format,
|
48
|
-
|
49
|
-
|
50
|
+
get_model_df,
|
51
|
+
get_act_pot,
|
52
|
+
get_model_version,
|
53
|
+
load_model)
|
50
54
|
else:
|
51
55
|
|
52
|
-
from .
|
56
|
+
from .old_cpu_model_ops import (get_act,
|
53
57
|
get_weights,
|
54
58
|
get_scaler,
|
55
59
|
get_acc,
|
56
60
|
get_model_type,
|
57
61
|
get_weights_type,
|
58
62
|
get_weights_format,
|
59
|
-
|
60
|
-
|
63
|
+
get_model_df,
|
64
|
+
get_act_pot,
|
65
|
+
get_model_version,
|
66
|
+
load_model)
|
61
67
|
|
62
68
|
model = load_model(model_name, model_path)
|
63
69
|
|
@@ -68,10 +74,32 @@ def update_model_to_v5(model_name, model_path, is_cuda):
|
|
68
74
|
model_type = model[get_model_type()]
|
69
75
|
weights_type = model[get_weights_type()]
|
70
76
|
weights_format = model[get_weights_format()]
|
77
|
+
model_df = model[get_model_df()]
|
78
|
+
act_pot = model[get_act_pot()]
|
79
|
+
version = model[get_model_version()]
|
80
|
+
|
81
|
+
from .model_ops import get_model_template
|
82
|
+
|
83
|
+
template_model = get_model_template()
|
84
|
+
|
85
|
+
model = template_model(weights,
|
86
|
+
None,
|
87
|
+
test_acc,
|
88
|
+
activations,
|
89
|
+
scaler_params,
|
90
|
+
None,
|
91
|
+
model_type,
|
92
|
+
weights_type,
|
93
|
+
weights_format,
|
94
|
+
device_version,
|
95
|
+
model_df,
|
96
|
+
act_pot
|
97
|
+
)
|
98
|
+
|
71
99
|
|
72
100
|
from .__init__ import __version__
|
73
101
|
device_version = __version__
|
74
102
|
|
75
|
-
save_model("updated_" + model_name,
|
103
|
+
save_model(model, "updated_" + model_name, model_path)
|
76
104
|
|
77
|
-
print(f"\nModel succesfully updated to {device_version}.
|
105
|
+
print(f"\nModel succesfully updated from {version} to {device_version}. In this location: {model_path}\nNOTE: This operation just for compatibility. You may still have perfomance issues in this situation please install model's version of pyerualjetwork.")
|
@@ -17,7 +17,7 @@ Examples: https://github.com/HCB06/PyerualJetwork/tree/main/Welcome_to_PyerualJe
|
|
17
17
|
|
18
18
|
PyerualJetwork document: https://github.com/HCB06/PyerualJetwork/blob/main/Welcome_to_PyerualJetwork/PYERUALJETWORK_USER_MANUEL_AND_LEGAL_INFORMATION(EN).pdf
|
19
19
|
|
20
|
-
-
|
20
|
+
- Creator: Hasan Can Beydili
|
21
21
|
- YouTube: https://www.youtube.com/@HasanCanBeydili
|
22
22
|
- Linkedin: https://www.linkedin.com/in/hasan-can-beydili-77a1b9270/
|
23
23
|
- Instagram: https://www.instagram.com/canbeydilj
|