Skip to content

Commit f531bff

Browse files
committed
update dtlz unitest
1 parent 82102e2 commit f531bff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

unit_test/problems/test_dtlz.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
from unittest import TestCase
2+
13
import torch
24

35
from evox.problems.numerical import DTLZ1, DTLZ2, DTLZ3, DTLZ4, DTLZ5, DTLZ6, DTLZ7
4-
from unittest import TestCase
56

67

78
class TestBraxProblem(TestCase):
8-
99
def setUp(self):
1010
d = 12
1111
m = 3
@@ -20,7 +20,6 @@ def setUp(self):
2020
]
2121

2222
def test_dtlz(self):
23-
2423
pop = torch.rand(2, 12)
2524
for pro in self.pro:
2625
fit = pro.evaluate(pop)

0 commit comments

Comments
 (0)