Skip to content

Commit

Permalink
fix formatting of new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfo committed Mar 21, 2024
1 parent 845cd3b commit 6c36aba
Showing 1 changed file with 3 additions and 34 deletions.
37 changes: 3 additions & 34 deletions keras_tuner/engine/hyperparameters/hp_types/float_hp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,7 @@ def test_float_log_with_float_step():
)
assert np.allclose(
list(rg.values),
[
0.1,
0.11,
0.121,
0.1331,
0.14641,
0.161051,
0.1771561,
0.19487171
]
[0.1, 0.11, 0.121, 0.1331, 0.14641, 0.161051, 0.1771561, 0.19487171],
)


Expand Down Expand Up @@ -103,16 +94,7 @@ def test_float_reverse_log_with_float_step():

assert np.allclose(
list(rg.values),
[
0.2,
0.19,
0.179,
0.1669,
0.15359,
0.138949,
0.1228439,
0.10512829
]
[0.2, 0.19, 0.179, 0.1669, 0.15359, 0.138949, 0.1228439, 0.10512829],
)


Expand Down Expand Up @@ -213,20 +195,7 @@ def test_float_values_property_with_float_step():
values = list(hp_module.Float("float", 0, 1, 0.1).values)
assert len(values) == 11
assert np.allclose(
values,
[
0.0,
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7,
0.8,
0.9,
1.0
]
values, [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
)
assert isinstance(values[0], float)

Expand Down

0 comments on commit 6c36aba

Please sign in to comment.