e4deccd98b73c918f582297050ecaf899e5387eb,ristretto/tests/test_interp_decomp.py,,test_rid_col,#,50
Before Change
// =============================================================================
def test_rid_col():
m, k = 100, 10
A = np.array(np.random.randn(m, k), np.float64)
A = A.dot(A.T)
A = A[:,0:50]
// index_set = False
C, V = rinterp_decomp(A, k=k+2, mode="column", index_set=False)
relative_error = (np.linalg.norm(A - C.dot(V)) / np.linalg.norm(A))
assert relative_error < 1e-4
// index_set = True
C, V = rinterp_decomp(A, k=k+2, mode="column", index_set=True)
relative_error = (np.linalg.norm(A - A[:,C].dot(V)) / np.linalg.norm(A))
assert relative_error < 1e-4
def test_rid_row():
After Change
// =============================================================================
def test_rid_col():
m, k = 100, 10
A = np.random.randn(m, k).astype(np.float64)
A = A.dot(A.T)[:, :50]
// index_set = False
C, V = rinterp_decomp(A, k+2, mode="column", index_set=False)
A_id = C.dot(V)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 21
Instances
Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_interp_decomp.py
Class Name:
Method Name: test_rid_col
Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_interp_decomp.py
Class Name:
Method Name: test_rid_row
Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_interp_decomp.py
Class Name:
Method Name: test_id_row
Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_cur.py
Class Name:
Method Name: test_cur
Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_interp_decomp.py
Class Name:
Method Name: test_rid_col
Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_interp_decomp.py
Class Name:
Method Name: test_id_col
Project Name: erichson/ristretto
Commit Name: e4deccd98b73c918f582297050ecaf899e5387eb
Time: 2018-05-24
Author: jknox13@uw.edu
File Name: ristretto/tests/test_cur.py
Class Name:
Method Name: test_rcur