evaluator = tff.learning.build_federated_evaluation(model_fn)
federated_metrics = evaluator(state.model, val_data)
federated_metrics OrderedDict([('binary_accuracy', 0.5650763),
             ('precision', 0.5395533),
             ('recall', 0.88771707),
             ('loss', 0.66405207)])
​