def test_pairwise_distances(X_blobs):
    centers = X_blobs[::100].compute()
    result = dask_ml.metrics.pairwise_distances(X_blobs, centers)
    expected = sklearn.metrics.pairwise_distances(X_blobs.compute(), centers)
    assert_eq(result, expected, atol=0.0001)
def test_pairwise_distances(X_blobs):
    centers = X_blobs[::100].compute()
    result = dask_ml.metrics.pairwise_distances(X_blobs, centers)
    expected = sklearn.metrics.pairwise_distances(X_blobs.compute(), centers)
    assert_eq(result, expected, atol=0.0001)