Skip to content

Commit

Permalink
⬆️ test optional package conda
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRossetti committed May 21, 2024
1 parent 8a2b3fc commit 5e118d9
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions cdlib/test/test_nodeclustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,25 @@ def test_comparison(self):
self.assertIsInstance(coms.adjusted_rand_index(coms2).score, float)
self.assertIsInstance(coms.variation_of_information(coms2).score, float)

self.assertIsInstance(coms.partition_closeness_simple(coms2).score, float)
self.assertIsInstance(coms.ecs(coms2).score, float)
self.assertIsInstance(coms.jaccard_index(coms2).score, float)
self.assertIsInstance(coms.rand_index(coms2).score, float)
self.assertIsInstance(coms.fowlkes_mallows_index(coms2).score, float)
self.assertIsInstance(coms.classification_error(coms2).score, float)
self.assertIsInstance(coms.czekanowski_index(coms2).score, float)
self.assertIsInstance(coms.dice_index(coms2).score, float)
self.assertIsInstance(coms.sorensen_index(coms2).score, float)
self.assertIsInstance(coms.rogers_tanimoto_index(coms2).score, float)
self.assertIsInstance(coms.southwood_index(coms2).score, float)
self.assertIsInstance(coms.mi(coms2).score, float)
self.assertIsInstance(coms.rmi(coms2).score, float)
self.assertIsInstance(coms.geometric_accuracy(coms2).score, float)
self.assertIsInstance(coms.overlap_quality(coms2).score, float)
self.assertIsInstance(coms.sample_expected_sim(coms2).score, float)
try:
import clusim

self.assertIsInstance(coms.partition_closeness_simple(coms2).score, float)
self.assertIsInstance(coms.ecs(coms2).score, float)
self.assertIsInstance(coms.jaccard_index(coms2).score, float)
self.assertIsInstance(coms.rand_index(coms2).score, float)
self.assertIsInstance(coms.fowlkes_mallows_index(coms2).score, float)
self.assertIsInstance(coms.classification_error(coms2).score, float)
self.assertIsInstance(coms.czekanowski_index(coms2).score, float)
self.assertIsInstance(coms.dice_index(coms2).score, float)
self.assertIsInstance(coms.sorensen_index(coms2).score, float)
self.assertIsInstance(coms.rogers_tanimoto_index(coms2).score, float)
self.assertIsInstance(coms.southwood_index(coms2).score, float)
self.assertIsInstance(coms.mi(coms2).score, float)
self.assertIsInstance(coms.rmi(coms2).score, float)
self.assertIsInstance(coms.geometric_accuracy(coms2).score, float)
self.assertIsInstance(coms.overlap_quality(coms2).score, float)
self.assertIsInstance(coms.sample_expected_sim(coms2).score, float)

except ImportError:
pass

0 comments on commit 5e118d9

Please sign in to comment.