Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why this error occurred #6

Open
lizhihong108 opened this issue Jul 18, 2017 · 4 comments
Open

Why this error occurred #6

lizhihong108 opened this issue Jul 18, 2017 · 4 comments

Comments

@lizhihong108
Copy link

I downloaded the code, configuration environment, runtime errors are as follows:

File "C:\ProgramData\Anaconda3\lib\site-packages\sklearn\utils\multiclass.py", line 172, in check_classification_targets
raise ValueError("Unknown label type: %r" % y_type)

I found in the following statement, debugger, y value always "continues"
y_type = type_of_target(y)
if y_type not in ['binary', 'multiclass', 'multiclass-multioutput',
'multilabel-indicator', 'multilabel-sequences']:
raise ValueError("Unknown label type: %r" % y_type)

Why, how to solve?
thank you!

@rayli2018
Copy link

does this solved? i have same issue

@peterw
Copy link

peterw commented Apr 22, 2018

Change the float to int?

@rayli2018
Copy link

no it does not work

@sywinner
Copy link

I have the same question.Has anyone solved this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants