예제 #1
0
def test_is_is_element_type_Estimator():
    assert Scorer.is_element_type("Estimator")
예제 #2
0
def test_is_is_element_type_Transformer():
    assert Scorer.is_element_type("Transformer")
예제 #3
0
def test_is_is_element_type_bad():
    with pytest.raises(PhotonaiError):
        assert Scorer.is_element_type("Clustering")
예제 #4
0
def test_metric_is_element_type_error():
    with pytest.raises(PhotonaiError):
        assert Scorer.is_element_type('fred')
예제 #5
0
def test_metric_is_element_type_estimator():
    assert Scorer.is_element_type(Scorer.ELEMENT_TYPES[Scorer.ESTID])
예제 #6
0
def test_metric_is_element_type():
    assert Scorer.is_element_type(Scorer.ELEMENT_TYPES[Scorer.TRANID])