Skip to content

Commit

Permalink
Fix code format.
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Dec 6, 2023
1 parent d745fa8 commit 037ec9f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keras/callbacks/reduce_lr_on_plateau.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(
mode="auto",
min_delta=1e-4,
cooldown=0,
min_lr=0.,
min_lr=0.0,
**kwargs,
):
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion keras/utils/audio_dataset_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def test_audio_dataset_from_directory_errors(self):
ValueError, "`validation_split` must be set"
):
_ = audio_dataset_utils.audio_dataset_from_directory(
directory, validation_split=0., subset="training"
directory, validation_split=0.0, subset="training"
)

with self.assertRaisesRegex(ValueError, "must provide a `seed`"):
Expand Down
2 changes: 1 addition & 1 deletion keras/utils/image_dataset_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def test_image_dataset_from_directory_errors(self):
ValueError, "`validation_split` must be set"
):
_ = image_dataset_utils.image_dataset_from_directory(
directory, validation_split=0., subset="training"
directory, validation_split=0.0, subset="training"
)

with self.assertRaisesRegex(ValueError, "must provide a `seed`"):
Expand Down
2 changes: 1 addition & 1 deletion keras/utils/text_dataset_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def test_text_dataset_from_directory_errors(self):
ValueError, "`validation_split` must be set"
):
_ = text_dataset_utils.text_dataset_from_directory(
directory, validation_split=0., subset="training"
directory, validation_split=0.0, subset="training"
)

with self.assertRaisesRegex(ValueError, "must provide a `seed`"):
Expand Down

0 comments on commit 037ec9f

Please sign in to comment.