--- autokeras/engine/encoder.py
+++ autokeras/engine/encoder.py
@@ -50,7 +50,6 @@
'int_to_label': self._int_to_label,
}
- @classmethod
def from_config(cls, config):
obj = super().from_config(config)
obj._labels = config['labels']