Skip to content

Commit

Permalink
resolve style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-jin committed Feb 3, 2019
1 parent a899c49 commit 0c91a1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autokeras/image/image_supervised.py
Expand Up @@ -259,7 +259,7 @@ def __init__(self, **kwargs):
super().__init__(**kwargs)


class PortableImageSupervised(PortableDeepSupervised):
class PortableImageSupervised(PortableDeepSupervised, ABC):
def __init__(self, graph, y_encoder, data_transformer, resize_params, verbose=False, path=None):
"""Initialize the instance.
Args:
Expand Down
4 changes: 3 additions & 1 deletion autokeras/supervised.py
Expand Up @@ -228,6 +228,8 @@ def __init__(self, verbose=False, path=None):
if path is None:
path = rand_temp_folder_generator()
self.path = path
self.graph = None
self.data_transformer = None

@property
@abstractmethod
Expand Down Expand Up @@ -289,7 +291,7 @@ def save(self, model_path):
self.graph.produce_keras_model().save(model_path)


class PortableDeepSupervised(SingleModelSupervised):
class PortableDeepSupervised(SingleModelSupervised, ABC):
def __init__(self, graph, y_encoder, data_transformer, verbose=False, path=None):
"""Initialize the instance.
Expand Down

0 comments on commit 0c91a1f

Please sign in to comment.