def test_metrics(self): metrics = Clustering().fit(self.cdr3).metrics(self.epitopes) metrics.purity() metrics.consistency() metrics.retention() metrics.purity_90() metrics.summary()
def test_quality(self): metrics = Clustering().fit(self.cdr3).metrics(self.epitopes) self.assertGreater(metrics.purity()[0], 0.6) self.assertGreater(metrics.consistency()[0], 0.12) self.assertGreater(metrics.retention(), 0.21) self.assertGreater(metrics.purity_90()[0], 0.36)