From 8344d54b4cb4929c2012cddec9cb6c9da7361710 Mon Sep 17 00:00:00 2001 From: Colin Leong <122366389+cleong110@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:06:34 -0500 Subject: [PATCH] euclidean, not l2 --- pose_evaluation/metrics/test_distance_metric.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pose_evaluation/metrics/test_distance_metric.py b/pose_evaluation/metrics/test_distance_metric.py index 35b1cc9..e5f5c52 100644 --- a/pose_evaluation/metrics/test_distance_metric.py +++ b/pose_evaluation/metrics/test_distance_metric.py @@ -20,7 +20,7 @@ def get_test_poses(length1: int, length2: int): class TestDistanceMetricGeneric(unittest.TestCase): def setUp(self): - self.metric = DistanceMetric("l2") + self.metric = DistanceMetric("euclidean") def test_scores_are_symmetric(self): hypothesis, reference = get_test_poses(2, 2) @@ -41,7 +41,7 @@ def test_score_different_length(self): class TestDistanceMetricL1(unittest.TestCase): def setUp(self): - self.metric = DistanceMetric("l1") + self.metric = DistanceMetric("manhattan") def test_score_equal_length(self): hypothesis, reference = get_test_poses(2, 2) @@ -55,7 +55,7 @@ def test_score_equal_length(self): class TestDistanceMetricL2(unittest.TestCase): def setUp(self): - self.metric = DistanceMetric("l2") + self.metric = DistanceMetric("euclidean") def test_score_equal_length(self): hypothesis, reference = get_test_poses(2, 2)