Skip to content

Commit

Permalink
Merge pull request #94 from nzw0301/remove-warning-by-calling-trial.r…
Browse files Browse the repository at this point in the history
…eport-at-the-same-step

Remove `UserWarning` by `tests/test_keras.py`
  • Loading branch information
contramundum53 authored Feb 26, 2024
2 parents 89b3058 + 6f136a0 commit ebc0c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_keras.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_keras_pruning_callback_observation_isnan() -> None:
callback.on_epoch_end(0, {"loss": 1.0})

with pytest.raises(optuna.TrialPruned):
callback.on_epoch_end(0, {"loss": float("nan")})
callback.on_epoch_end(1, {"loss": float("nan")})


def test_keras_pruning_callback_monitor_is_invalid() -> None:
Expand Down

0 comments on commit ebc0c25

Please sign in to comment.