Skip to content

Commit

Permalink
Merge pull request #109 from ljchang/kendall
Browse files Browse the repository at this point in the history
added testing method for kendall and pearson for similarit
  • Loading branch information
ljchang committed Mar 1, 2017
2 parents 0da7cb3 + 6331d99 commit a3a1614
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nltools/tests/test_data.py
Expand Up @@ -276,6 +276,8 @@ def test_adjacency(tmpdir):

# Test similarity
assert len(dat_multiple.similarity(dat_single.squareform()))==len(dat_multiple)
assert len(dat_multiple.similarity(dat_single.squareform(),metric='pearson'))==len(dat_multiple)
assert len(dat_multiple.similarity(dat_single.squareform(),metric='kendall'))==len(dat_multiple)

# Test distance
assert isinstance(dat_multiple.distance(),Adjacency)
Expand Down

0 comments on commit a3a1614

Please sign in to comment.