/dports/misc/py-xgboost/xgboost-1.5.1/tests/cpp/objective/ |
H A D | test_aft_obj.cc | 46 const std::vector<bst_float>& expected_grad, in CheckGPairOverGridPoints() argument 71 CHECK_EQ(num_point, expected_grad.size()); in CheckGPairOverGridPoints() 74 EXPECT_NEAR(gpair[i].GetGrad(), expected_grad[i], ftol); in CheckGPairOverGridPoints()
|
/dports/misc/xgboost/xgboost-1.5.1/tests/cpp/objective/ |
H A D | test_aft_obj.cc | 46 const std::vector<bst_float>& expected_grad, in CheckGPairOverGridPoints() argument 71 CHECK_EQ(num_point, expected_grad.size()); in CheckGPairOverGridPoints() 74 EXPECT_NEAR(gpair[i].GetGrad(), expected_grad[i], ftol); in CheckGPairOverGridPoints()
|
/dports/math/py-pymc3/pymc-3.11.4/pymc3/tests/ |
H A D | test_theanof.py | 226 expected_grad = np.zeros_like(arr) 232 expected_grad[inds] += 1 233 expected_grad *= 2 * arr 235 assert np.allclose(out, expected_grad)
|
/dports/science/py-dipy/dipy-1.4.1/dipy/align/tests/ |
H A D | test_imaffine.py | 612 expected_grad = np.zeros(n) 614 assert_equal(actual_grad, expected_grad) 619 assert_equal(actual_grad, expected_grad)
|
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/tests/python/unittest/ |
H A D | test_higher_order_grad.py | 566 expected_grad = grad.asnumpy() 568 expected_grad *= head_grad.asnumpy() 571 expected_grad, computed_grad.asnumpy(), rtol=rtol, atol=atol)
|
H A D | test_numpy_op.py | 1282 expected_grad = _np.zeros(shape) 1283 expected_grad[basic_index] = 1 1284 assert same(a.grad.asnumpy(), expected_grad) 1994 expected_grad = collapse_sum_like(_np.ones_like(expected_ret), src_shape) 2031 expected_grad = collapse_sum_like(_np.ones_like(expected_ret), src_shape) 6151 expected_grad = g(v_np[i]) 7413 expected_grad = g(v_np[i]) 7472 expected_grad = _np.ones(shape) 7474 expected_grad += init_a_grad.asnumpy() 7841 expected_grad = g(v_np[i]) [all …]
|
H A D | test_operator.py | 4988 expected_grad = np.zeros(shape) 4993 expected_grad[i][j] = sum(npout_grad[k:k + repeats, j]) 5002 assert_almost_equal(expected_grad, arr_grad, rtol=1e-3) 5094 expected_grad = np.zeros(shape) 5099 assert_almost_equal(expected_grad, arr_grad, rtol=1e-3) 5756 expected_grad = np.array([[0, 0, 0], [1, 1, 1], [0, 0, 0]]) 5758 assert same(data.grad.asnumpy(), expected_grad) 5770 expected_grad = np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]]) 5772 assert same(data.grad.asnumpy(), expected_grad) 5950 expected_grad = 2 * x2 [all …]
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/tests/python/unittest/ |
H A D | test_higher_order_grad.py | 566 expected_grad = grad.asnumpy() 568 expected_grad *= head_grad.asnumpy() 571 expected_grad, computed_grad.asnumpy(), rtol=rtol, atol=atol)
|
H A D | test_numpy_op.py | 1282 expected_grad = _np.zeros(shape) 1283 expected_grad[basic_index] = 1 1284 assert same(a.grad.asnumpy(), expected_grad) 1994 expected_grad = collapse_sum_like(_np.ones_like(expected_ret), src_shape) 2031 expected_grad = collapse_sum_like(_np.ones_like(expected_ret), src_shape) 6151 expected_grad = g(v_np[i]) 7413 expected_grad = g(v_np[i]) 7472 expected_grad = _np.ones(shape) 7474 expected_grad += init_a_grad.asnumpy() 7841 expected_grad = g(v_np[i]) [all …]
|
H A D | test_operator.py | 4988 expected_grad = np.zeros(shape) 4993 expected_grad[i][j] = sum(npout_grad[k:k + repeats, j]) 5002 assert_almost_equal(expected_grad, arr_grad, rtol=1e-3) 5094 expected_grad = np.zeros(shape) 5099 assert_almost_equal(expected_grad, arr_grad, rtol=1e-3) 5756 expected_grad = np.array([[0, 0, 0], [1, 1, 1], [0, 0, 0]]) 5758 assert same(data.grad.asnumpy(), expected_grad) 5770 expected_grad = np.array([[0, 0, 0], [0, 0, 0], [0, 0, 0]]) 5772 assert same(data.grad.asnumpy(), expected_grad) 5950 expected_grad = 2 * x2 [all …]
|
/dports/math/moab/fathomteam-moab-7bde9dfb84a8/test/mesquite/unit/ |
H A D | CompositeOFTest.cpp | 317 const Vector3D expected_grad = value2 * grad1[i] + value1 * grad2[i]; in test_multiply_hess_diagonal() local 318 CPPUNIT_ASSERT_VECTORS_EQUAL( expected_grad, grad[i], 1e-6 ); in test_multiply_hess_diagonal()
|