pyerualjetwork 3.3.0__py3-none-any.whl → 3.3.1__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 +18 -2
- {pyerualjetwork-3.3.0.dist-info → pyerualjetwork-3.3.1.dist-info}/METADATA +1 -1
- pyerualjetwork-3.3.1.dist-info/RECORD +6 -0
- pyerualjetwork-3.3.0.dist-info/RECORD +0 -6
- {pyerualjetwork-3.3.0.dist-info → pyerualjetwork-3.3.1.dist-info}/WHEEL +0 -0
- {pyerualjetwork-3.3.0.dist-info → pyerualjetwork-3.3.1.dist-info}/top_level.txt +0 -0
plan/plan.py
CHANGED
@@ -396,6 +396,20 @@ def weight_identification(
|
|
396
396
|
|
397
397
|
# ACTIVATION FUNCTIONS -----
|
398
398
|
|
399
|
+
def spiral_activation(x):
|
400
|
+
|
401
|
+
r = np.sqrt(np.sum(x**2))
|
402
|
+
|
403
|
+
theta = np.arctan2(x[1:], x[:-1])
|
404
|
+
|
405
|
+
spiral_x = r * np.cos(theta + r)
|
406
|
+
spiral_y = r * np.sin(theta + r)
|
407
|
+
|
408
|
+
|
409
|
+
spiral_output = np.concatenate(([spiral_x[0]], spiral_y))
|
410
|
+
|
411
|
+
return spiral_output
|
412
|
+
|
399
413
|
def Softmax(
|
400
414
|
x # num: Input data to be transformed using softmax function.
|
401
415
|
):
|
@@ -731,6 +745,9 @@ def fex(
|
|
731
745
|
if activation == 'sine_offset':
|
732
746
|
Output += sine_offset(Input, 1.0)
|
733
747
|
|
748
|
+
if activation == 'spiral':
|
749
|
+
Output += spiral_activation(Input)
|
750
|
+
|
734
751
|
|
735
752
|
Input = Output
|
736
753
|
|
@@ -1031,7 +1048,6 @@ def multiple_evaluate(
|
|
1031
1048
|
|
1032
1049
|
def save_model(model_name,
|
1033
1050
|
model_type,
|
1034
|
-
class_count,
|
1035
1051
|
test_acc,
|
1036
1052
|
weights_type,
|
1037
1053
|
weights_format,
|
@@ -1448,7 +1464,7 @@ def synthetic_augmentation(x_train, y_train):
|
|
1448
1464
|
return np.array(x_balanced), np.array(y_balanced)
|
1449
1465
|
|
1450
1466
|
|
1451
|
-
def standard_scaler(x_train, x_test=None, scaler_params=None):
|
1467
|
+
def standard_scaler(x_train=None, x_test=None, scaler_params=None):
|
1452
1468
|
info_standard_scaler = """
|
1453
1469
|
Standardizes training and test datasets. x_test may be None.
|
1454
1470
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pyerualjetwork
|
3
|
-
Version: 3.3.
|
3
|
+
Version: 3.3.1
|
4
4
|
Summary: fit function changes: LTD parameter included for Deep PLAN and professional visualizing for training. in the fit funciton, show_training=True
|
5
5
|
Author: Hasan Can Beydili
|
6
6
|
Author-email: tchasancan@gmail.com
|
@@ -0,0 +1,6 @@
|
|
1
|
+
plan/__init__.py,sha256=LuFcY0nqAzpjTDWAZn7L7-wipwMpnREqVghPiva0Xjg,548
|
2
|
+
plan/plan.py,sha256=39AW4YIsz6htzmlVGLLUab1wpSQw6u2PeE9I488tSx4,67925
|
3
|
+
pyerualjetwork-3.3.1.dist-info/METADATA,sha256=0QhZbV-1i7-9ynrRwLTEP6MaWzBzD9yc2uIZeMFkj5I,368
|
4
|
+
pyerualjetwork-3.3.1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
5
|
+
pyerualjetwork-3.3.1.dist-info/top_level.txt,sha256=G0Al3HuNJ88434XneyDtRKAIUaLCizOFYFYNhd7e2OM,5
|
6
|
+
pyerualjetwork-3.3.1.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
plan/__init__.py,sha256=LuFcY0nqAzpjTDWAZn7L7-wipwMpnREqVghPiva0Xjg,548
|
2
|
-
plan/plan.py,sha256=2ccjNjnPWMlC1uatIdXpexBpTgdYlBQdd6Hua9cDrb0,67575
|
3
|
-
pyerualjetwork-3.3.0.dist-info/METADATA,sha256=oaNPz8e5fpUVSBNugzKQskDpDYW41Fotoy_WVl-H5ao,368
|
4
|
-
pyerualjetwork-3.3.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
5
|
-
pyerualjetwork-3.3.0.dist-info/top_level.txt,sha256=G0Al3HuNJ88434XneyDtRKAIUaLCizOFYFYNhd7e2OM,5
|
6
|
-
pyerualjetwork-3.3.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|