kingfengji / gcForest

This is the official implementation for the paper 'Deep forest: Towards an alternative to deep neural networks'
http://lamda.nju.edu.cn/code_gcForest.ashx
1.31k stars 429 forks source link

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

Open Luanshasha opened 5 years ago

Leo20171117 commented 5 years ago

标签不对吧可能

Luanshasha commented 5 years ago

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

zhangjiahuan17 commented 5 years ago

是的,要将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'。请问您遇到过类似的情况吗?