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