Skip to content

Commit

Permalink
euclidean, not l2
Browse files Browse the repository at this point in the history
  • Loading branch information
cleong110 committed Jan 9, 2025
1 parent 389abe2 commit 8344d54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pose_evaluation/metrics/test_distance_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 8344d54

Please sign in to comment.