Exemple #1
0
def test_cannot_score():
    with pytest.raises(ValueError):
        Invt_model = InvertedEncoding()
        Invt_model.fit(X, y)
        score = Invt_model.score(X2.transpose(), y)
        logger.info('Scores: ' + str(score))
Exemple #2
0
def test_can_score():
    Invt_model = InvertedEncoding()
    Invt_model.fit(X, y)
    score = Invt_model.score(X2, y)
    logger.info('Scores: ' + str(score))