508545f2c9a982a38a243ec95c7a5cdd266ed358,pygsp/tests/test_graphs.py,TestCase,test_degree,#TestCase#,46
Before Change
self.assertEqual(kj.shape[0], G.Ne)
def test_degree(self):
W = np.arange(1,17).reshape(4, 4)
G = graphs.Graph(W)
d = 4*np.ones([4])
dw = np.sum(W,axis=1).squeeze()
self.assertAlmostEqual(np.linalg.norm(G.d-d),0)
After Change
def test_degree(self):
W = 0.3 * (np.ones((4, 4)) - np.diag(4 * [1]))
G = graphs.Graph(W)
A = np.ones(W.shape) - np.diag(np.ones(4))
np.testing.assert_allclose(G.A.toarray(), A)
np.testing.assert_allclose(G.d, 3 * np.ones([4]))
np.testing.assert_allclose(G.dw, 3 * 0.3)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: epfl-lts2/pygsp
Commit Name: 508545f2c9a982a38a243ec95c7a5cdd266ed358
Time: 2017-11-23
Author: michael.defferrard@epfl.ch
File Name: pygsp/tests/test_graphs.py
Class Name: TestCase
Method Name: test_degree
Project Name: tensorflow/agents
Commit Name: 982db1e3e4097b2fa2727bddf05307633dd6df83
Time: 2020-03-12
Author: no-reply@google.com
File Name: tf_agents/bandits/agents/utils.py
Class Name:
Method Name: build_laplacian_over_ordinal_integer_actions
Project Name: pymc-devs/pymc3
Commit Name: 7a31475bb139893cd3fd2bd1dbc33d040a0511c8
Time: 2017-05-04
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: _logp_tau