def _compare_metrics(x, y):
    """Compare metrics of result x to result y."""
    metric_x = FLAGS.metric_sign * x.get(FLAGS.metric, 0)
    metric_y = FLAGS.metric_sign * y.get(FLAGS.metric, 0)
    tf.logging.info("Metric: %s\tNew: %2.4f\tOld: %2.4f", FLAGS.metric,
                    metric_x, metric_y)
    return metric_x > metric_y
Compare metrics of result x to result y.
language/capwap/utils/experiment_utils.py