예제 #1
0
def test_multiclass_accuracy_softprob():
    accuracy_name, accuracy_result = accuracy(multiclass_preds_softprob,
                                              multiclass_dtrain)
    assert accuracy_name == 'accuracy'
    assert accuracy_result == .1
예제 #2
0
def test_binary_accuracy_logistic():
    accuracy_name, accuracy_result = accuracy(binary_preds_logistic,
                                              binary_dtrain)
    assert accuracy_name == 'accuracy'
    assert accuracy_result == .5