コード例 #1
0
def test_duplicate_data_many():
    with assert_warns_regex(
            RuntimeWarning,
            "Detected zero distance between ([0-9]*) pairs of samples. Consider removing duplicates to avoid errors in downstream processing.",
    ):
        build_graph(np.vstack([data, data[:21]]),
                    n_pca=20,
                    decay=10,
                    thresh=1e-4)
コード例 #2
0
ファイル: test_exact.py プロジェクト: stanleyn/graphtools
def test_duplicate_data():
    with assert_warns_regex(
            RuntimeWarning,
            r"Detected zero distance between samples ([0-9and,\s]*). Consider removing duplicates to avoid errors in downstream processing.",
    ):
        build_graph(np.vstack([data, data[:10]]), n_pca=20, decay=10, thresh=0)
コード例 #3
0
def test_duplicate_data():
    build_graph(np.vstack([data, data[:10]]),
                n_pca=20,
                decay=10,
                thresh=1e-4)
コード例 #4
0
def test_many_duplicate_data():
    build_graph(np.vstack([data, data]), n_pca=20, decay=10, thresh=0)