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

AssertionError:n_classes(10) != len(unique(y)) [0 1] #51

Open
Luanshasha opened this issue Oct 31, 2018 · 3 comments
Open

AssertionError:n_classes(10) != len(unique(y)) [0 1] #51

Luanshasha opened this issue Oct 31, 2018 · 3 comments

Comments

@Luanshasha
Copy link

No description provided.

@Leo20171117
Copy link

标签不对吧可能

@Luanshasha
Copy link
Author

是的,要将ca_config["n_classes"]=3
改成自己的标签种类数n,即ca_config["n_classes"]=n,而且还要加上多加一个"num_class":n。谢谢您的回复

@zhangjiahuan17
Copy link

是的,要将ca_config["n_classes"]=3
改成自己的标签种类数n,即ca_config["n_classes"]=n,而且还要加上多加一个"num_class":n。谢谢您的回复

您好,我更改了种类数,也加了"num_class":n,但是仍有报错: init() got an unexpected keyword argument 'num_class'。请问您遇到过类似的情况吗?

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

3 participants