Browse Source

Remove a st of bfgs.

tags/v1.6.0
liqiliang 4 years ago
parent
commit
88762e3759
1 changed files with 1 additions and 11 deletions
  1. +1
    -11
      tests/st/scipy_st/test_optimize.py

+ 1
- 11
tests/st/scipy_st/test_optimize.py View File

@@ -51,15 +51,6 @@ def matyas(np):
return func


def eggholder(np):
def func(p):
x, y = p
return - (y + 47) * np.sin(np.sqrt(np.abs(x / 2. + y + 47.))) - x * np.sin(
np.sqrt(np.abs(x - (y + 47.))))

return func


@pytest.mark.level0
@pytest.mark.platform_x86_gpu_training
@pytest.mark.platform_x86_cpu
@@ -68,8 +59,7 @@ def eggholder(np):
@pytest.mark.parametrize('func_x0', [(rosenbrock, onp.zeros(2)),
(himmelblau, onp.zeros(2)),
(himmelblau, onp.array([92, 0.001])),
(matyas, onp.ones(2)),
(eggholder, onp.ones(2) * 100.)])
(matyas, onp.ones(2))])
def test_bfgs(dtype, func_x0):
"""
Feature: ALL TO ALL


Loading…
Cancel
Save