Ejemplo n.º 1
0
def test_row_norms(X_blobs):
    result = row_norms(X_blobs, squared=True)
    expected = sklearn.utils.extmath.row_norms(X_blobs.compute(), squared=True)
    assert_eq(result, expected)
Ejemplo n.º 2
0
def test_row_norms(X_blobs):
    result = row_norms(X_blobs, squared=True)
    expected = k_means_.row_norms(X_blobs.compute(), squared=True)
    assert_eq(result, expected)