Skip to content

Commit 1f42618

Browse files
authored
Resolves #812 (#815)
1 parent d07a23e commit 1f42618

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

keras_tuner/distribute/oracle_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from keras_tuner.protos import service_pb2_grpc
2424

2525

26-
class OracleClient(object):
26+
class OracleClient:
2727
"""Wraps an `Oracle` on a worker to send requests to the chief."""
2828

2929
def __init__(self, oracle):

keras_tuner/engine/base_tuner_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_best_models(self, num_models=1):
4747
return models
4848

4949
def build_model(hp):
50-
class MyModel(object):
50+
class MyModel:
5151
def __init__(self):
5252
self.factor = hp.Float("a", 0, 10)
5353

keras_tuner/engine/conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
@six.add_metaclass(abc.ABCMeta)
27-
class Condition(object):
27+
class Condition:
2828
"""Abstract condition for a conditional hyperparameter.
2929
3030
Subclasses of this object can be passed to a `HyperParameter` to specify

keras_tuner/engine/hypermodel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from keras_tuner import errors
1717

1818

19-
class HyperModel(object):
19+
class HyperModel:
2020
"""Defines a search space of models.
2121
2222
A search space is a collection of models. The `build` function will build

keras_tuner/engine/hyperparameters/hyperparameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from keras_tuner.engine import conditions as conditions_mod
1919

2020

21-
class HyperParameter(object):
21+
class HyperParameter:
2222
"""Hyperparameter base class.
2323
2424
A `HyperParameter` instance is uniquely identified by its `name` and

keras_tuner/engine/hyperparameters/hyperparameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from keras_tuner.protos import keras_tuner_pb2
2626

2727

28-
class HyperParameters(object):
28+
class HyperParameters:
2929
"""Container for both a hyperparameter space, and current values.
3030
3131
A `HyperParameters` instance can be pass to `HyperModel.build(hp)` as an

keras_tuner/engine/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
UPLOAD_ERROR = 4
2828

2929

30-
class Logger(object):
30+
class Logger:
3131
def register_tuner(self, tuner_state):
3232
"""Informs the logger that a new search is starting."""
3333
raise NotImplementedError

keras_tuner/engine/logger_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
import keras_tuner
2121

2222

23-
class OkResponse(object):
23+
class OkResponse:
2424
ok = True
2525

2626

27-
class MockPost(object):
27+
class MockPost:
2828
def __init__(self):
2929
self.url_calls = []
3030

keras_tuner/engine/metrics_tracking.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from keras_tuner.protos import keras_tuner_pb2
2121

2222

23-
class MetricObservation(object):
23+
class MetricObservation:
2424
"""Metric value at a given step of training across multiple executions.
2525
2626
If the model is trained multiple
@@ -73,7 +73,7 @@ def from_proto(cls, proto):
7373
return cls(value=list(proto.value), step=proto.step)
7474

7575

76-
class MetricHistory(object):
76+
class MetricHistory:
7777
"""Record of multiple executions of a single metric.
7878
7979
It contains a collection of `MetricObservation` instances.
@@ -176,7 +176,7 @@ def from_proto(cls, proto):
176176
return instance
177177

178178

179-
class MetricsTracker(object):
179+
class MetricsTracker:
180180
"""Record of the values of multiple executions of all metrics.
181181
182182
It contains `MetricHistory` instances for the metrics.

keras_tuner/engine/stateful.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import tensorflow as tf
2020

2121

22-
class Stateful(object):
22+
class Stateful:
2323
"""The base class for saving and restoring the state.
2424
2525
The functionalities in this class is for the user to resume a previously

0 commit comments

Comments
 (0)