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 7900072 + b059967 commit 0233f29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/safeds/ml/nn/layers/test_forward_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ def test_should_assert_that_layer_size_is_greater_than_normal_object(layer: Forw
],
ids=["sigmoid", "relu", "softmax", "none"],
)
def test_should_set_activation_function(activation_function: Literal["sigmoid","relu", "softmax", "none"], expected_activation_function: type | None) -> None:
def test_should_set_activation_function(
activation_function: Literal["sigmoid", "relu", "softmax", "none"],
expected_activation_function: type | None,
) -> None:
forward_layer: ForwardLayer = ForwardLayer(1, overwrite_activation_function=activation_function)
assert forward_layer is not None
forward_layer._input_size = 1
Expand Down

0 comments on commit 0233f29

Please sign in to comment.