def evaluate(self, eval_dataset: Optional[tf.data.Dataset]=None, prediction_loss_only: Optional[bool]=None) -> Dict[(str, float)]:
    '\n        Prediction/evaluation loop, shared by `evaluate()` and `predict()`.\n        '
    if (eval_dataset is None):
        eval_dataset = self.eval_dataset
    output = self._prediction_loop(eval_dataset, description='Evaluation')
    return output.metrics
Prediction/evaluation loop, shared by `evaluate()` and `predict()`.
def evaluate(self, eval_dataset: Optional[tf.data.Dataset]=None, prediction_loss_only: Optional[bool]=None) -> Dict[(str, float)]:
    '\n        \n        '
    if (eval_dataset is None):
        eval_dataset = self.eval_dataset
    output = self._prediction_loop(eval_dataset, description='Evaluation')
    return output.metrics