def predict(self, x, **kwargs):
Predict the output for a given testing data.
x = self.preprocess(self.tuner.get_best_models(1), x)
y = self.tuner.get_best_models(1)[0].predict(x, **kwargs)
y = layer_utils.format_inputs(y, self.name)
y = self._postprocess(y)
if len(y) == 1:
y = y[0]
return y
def _get_metrics(self):
metrics = []
for metrics_list in [output_node.in_hypermodels[0].metrics for