We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a17ae7a commit cfe9794Copy full SHA for cfe9794
test/test_all.py
@@ -1,7 +1,7 @@
1
-from ecapy.optimizer import eca
+from ecapy import eca
2
3
def test_eca():
4
- f = lambda x, d: abs(sum(x[:d]))
5
- x, fx = eca(f, 10, minimize=True)
+ f = lambda x: abs(sum(x))
+ x, fx = eca(f, 5, minimize=True)
6
7
assert abs(fx) < 1e-8
0 commit comments