Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/889-feat-allow-activation-functi…
Browse files Browse the repository at this point in the history
…on-parameter-for-forward-layer' into 889-feat-allow-activation-function-parameter-for-forward-layer
  • Loading branch information
Gerhardsa0 committed Jul 15, 2024
2 parents d5527a6 + a39368b commit 060f0f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/safeds/ml/nn/layers/_forward_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ class ForwardLayer(Layer):
If the given activation function does not exist
"""

def __init__(self, neuron_count: int | Choice[int], overwrite_activation_function: Literal["sigmoid", "relu", "softmax", "none", "notset"] = "notset") -> None:
def __init__(
self,
neuron_count: int | Choice[int],
overwrite_activation_function: Literal["sigmoid", "relu", "softmax", "none", "notset"] = "notset",
) -> None:
if isinstance(neuron_count, Choice):
for val in neuron_count:
_check_bounds("neuron_count", val, lower_bound=_ClosedBound(1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
datetime.date(2022, 1, 15),
datetime.date(2022, 1, 16),
datetime.date(2022, 1, 17),
],
"A": [10, 5, 20, 2, 15, 1, 10, 5, 20],
},
Expand Down

0 comments on commit 060f0f5

Please sign in to comment.