1
resposta

Vou executar a o accuracy_score( ) e dá o seguinte errro: " ValueError: Classification metrics can't handle a mix of multilabel-indicator and binary targets"

taxa_de_acerto = accuracy_score(testes_classes,predição)

ValueError Traceback (most recent call last) in () ----> 1 taxa_de_acerto = accuracy_score(testes_classes,predito)

1 frames /usr/local/lib/python3.7/dist-packages/sklearn/metrics/classification.py in _checktargets(y_true, y_pred) 88 if len(y_type) > 1: 89 raise ValueError("Classification metrics can't handle a mix of {0} " ---> 90 "and {1} targets".format(type_true, type_pred)) 91 92 # We can't have more than one value on y_type => The set is no more needed

ValueError: Classification metrics can't handle a mix of multilabel-indicator and binary targets

1 resposta

Oii Eder, tudo bem?

Você consegue me mandar seu código pra eu poder testar aqui?

Fico no aguardo!