def test_METRIC_SIGN_ZERO(): assert Scorer.metric_sign("SC") == 0
def test_METRIC_SIGN_POS(): assert Scorer.metric_sign("FM") == 1
def test_metric_sign_bad(): with pytest.raises(PhotonaiError): assert Scorer.metric_sign("fred") == Scorer.SCORE_SIGN[ Scorer.SCORE_ZEROID]
def test_metric_sign_SC(): assert Scorer.metric_sign("SC") == Scorer.SCORE_SIGN[Scorer.SCORE_ZEROID]
def test_metric_sign_FM(): assert Scorer.metric_sign("FM") == Scorer.SCORE_SIGN[Scorer.SCORE_POSID]
def test_count_METRIC_SIGN_NEG(): assert Scorer.metric_sign("hamming_loss") == -1