def test_metric_is_metricerror(): with pytest.raises(PhotonaiError): assert Scorer.is_metric('fred')
def test_metric_is_metric_linear(): assert Scorer.is_metric('mean_absolute_error')
def test_metric_is_metric_cluster(): assert Scorer.is_metric('CH')
def test_metric_is_metric_classif(): assert Scorer.is_metric('recall')