def testComputeMinADE(self):
    pred_score = np.reshape([0.5, 0.5], (1, 1, 2))
    pred_trajectory = np.reshape(
        [[[[4, 0], [6, 0], [8, 0], [10, 0]], [[0, 2], [0, 3], [0, 4], [0, 5]]],
         [[[14, 0], [16, 0], [18, 0], [20, 0]],
          [[0, 22], [0, 23], [0, 24], [0, 25]]]], (1, 1, 2, 2, 4, 2))
    val = self._RunEval(pred_score, pred_trajectory)
    # 5 metrics.
    self.assertEqual(len(val), 5)
    # 3 steps.
    self.assertEqual(len(val[0]), 3)
    # ADE of Vehicle.
    self.assertAlmostEqual(val[0][0], 5.97487, delta=1e-4)
    # FDE of Vehicle.
    self.assertAlmostEqual(val[1][0], 8.53553, delta=1e-4)