pyerualjetwork 2.0.2__py3-none-any.whl → 2.0.4__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.
- plan/plan.py +8 -6
- {pyerualjetwork-2.0.2.dist-info → pyerualjetwork-2.0.4.dist-info}/METADATA +1 -1
- pyerualjetwork-2.0.4.dist-info/RECORD +6 -0
- pyerualjetwork-2.0.2.dist-info/RECORD +0 -6
- {pyerualjetwork-2.0.2.dist-info → pyerualjetwork-2.0.4.dist-info}/WHEEL +0 -0
- {pyerualjetwork-2.0.2.dist-info → pyerualjetwork-2.0.4.dist-info}/top_level.txt +0 -0
plan/plan.py
CHANGED
@@ -16,7 +16,7 @@ import seaborn as sns
|
|
16
16
|
def fit(
|
17
17
|
x_train: List[Union[int, float]],
|
18
18
|
y_train: List[Union[int, float, str]], # At least two.. and one hot encoded
|
19
|
-
action_potential:
|
19
|
+
action_potential: Union[float],
|
20
20
|
) -> str:
|
21
21
|
|
22
22
|
infoPLAN = """
|
@@ -31,11 +31,12 @@ def fit(
|
|
31
31
|
list([num]): (Weight matrices list, train_predictions list, Trainacc).
|
32
32
|
error handled ?: Process status ('e')
|
33
33
|
"""
|
34
|
+
|
34
35
|
if action_potential < 0 or action_potential > 1:
|
35
36
|
|
36
37
|
print(Fore.RED + "ERROR101: ACTION potential value must be in range 0-1. from: fit",infoPLAN)
|
37
38
|
return 'e'
|
38
|
-
|
39
|
+
|
39
40
|
if len(x_train) != len(y_train):
|
40
41
|
print(Fore.RED + "ERROR301: x_train list and y_train list must be same length. from: fit",infoPLAN)
|
41
42
|
return 'e'
|
@@ -51,7 +52,7 @@ def fit(
|
|
51
52
|
y_train = [tuple(sublist) for sublist in y_train]
|
52
53
|
|
53
54
|
neurons = [len(class_count),len(class_count)]
|
54
|
-
layers = ['fex',
|
55
|
+
layers = ['fex','cat']
|
55
56
|
|
56
57
|
x_train[0] = np.array(x_train[0])
|
57
58
|
x_train[0] = x_train[0].ravel()
|
@@ -93,7 +94,8 @@ def fit(
|
|
93
94
|
|
94
95
|
|
95
96
|
neural_layer = normalization(neural_layer)
|
96
|
-
|
97
|
+
|
98
|
+
|
97
99
|
if Layer == 'fex':
|
98
100
|
neural_layer,W[Lindex] = fex(neural_layer, W[Lindex], action_potential, Piece[Windex], 1)
|
99
101
|
elif Layer == 'cat':
|
@@ -363,7 +365,7 @@ def cat(
|
|
363
365
|
tuple: A tuple containing the neural layer (vector) result and the possibly updated weight matrix.
|
364
366
|
"""
|
365
367
|
|
366
|
-
PruneIndex = np.where(Input ==
|
368
|
+
PruneIndex = np.where(Input == 0)
|
367
369
|
|
368
370
|
if isTrain == 1:
|
369
371
|
|
@@ -973,4 +975,4 @@ def get_acc():
|
|
973
975
|
|
974
976
|
def get_pot():
|
975
977
|
|
976
|
-
return 1
|
978
|
+
return 1
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pyerualjetwork
|
3
|
-
Version: 2.0.
|
3
|
+
Version: 2.0.4
|
4
4
|
Summary: Advanced python deep learning library. New features: More simple and practical, all functions and variables are snake_case. (Documentation in desc. Examples in GİTHUB: https://github.com/HCB06/PyerualJetwork)
|
5
5
|
Author: Hasan Can Beydili
|
6
6
|
Author-email: tchasancan@gmail.com
|
@@ -0,0 +1,6 @@
|
|
1
|
+
plan/__init__.py,sha256=TYPKx35TBM7X814H-RQmVK9DduX5GX0JdTW7_-b2ZUc,377
|
2
|
+
plan/plan.py,sha256=-41P4Rj5_-PrYWYXcaavYHlu8AninycX3FJRs33JrQQ,33028
|
3
|
+
pyerualjetwork-2.0.4.dist-info/METADATA,sha256=GVCzZR_GTYxGb4TYWyFj4ff4dusUzBmtwt4ceGnyI-w,431
|
4
|
+
pyerualjetwork-2.0.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
5
|
+
pyerualjetwork-2.0.4.dist-info/top_level.txt,sha256=G0Al3HuNJ88434XneyDtRKAIUaLCizOFYFYNhd7e2OM,5
|
6
|
+
pyerualjetwork-2.0.4.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
plan/__init__.py,sha256=TYPKx35TBM7X814H-RQmVK9DduX5GX0JdTW7_-b2ZUc,377
|
2
|
-
plan/plan.py,sha256=eK0-QW-PDDGOIKUd7M4UZDcUBNPBM8yHWcf7_2BuaNQ,33061
|
3
|
-
pyerualjetwork-2.0.2.dist-info/METADATA,sha256=Al_AsghU7Po8wuux2fZAkSyhliaSCEWi6L5LuVZcVDc,431
|
4
|
-
pyerualjetwork-2.0.2.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
5
|
-
pyerualjetwork-2.0.2.dist-info/top_level.txt,sha256=G0Al3HuNJ88434XneyDtRKAIUaLCizOFYFYNhd7e2OM,5
|
6
|
-
pyerualjetwork-2.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|