yongzhuo / Keras-TextClassification

中文长文本分类、短句子分类、多标签分类、两句子相似度(Chinese Text Classification of Keras NLP, multi-label classify, or sentence classify, long or short),字词句向量嵌入层(embeddings)和网络层(graph)构建基类,FastText,TextCNN,CharCNN,TextRNN, RCNN, DCNN, DPCNN, VDCNN, CRNN, Bert, Xlnet, Albert, Attention, DeepMoji, HAN, 胶囊网络-CapsuleNet, Transformer-encode, Seq2seq, SWEM, LEAM, TextGCN
https://blog.csdn.net/rensihui
MIT License
1.78k stars 405 forks source link

博主大大求帮助 #57

Closed wangzhedaye closed 3 years ago

wangzhedaye commented 3 years ago

Error when checking target: expected dense_1 to have shape (17,) but got array with shape (2,) 我换成自己的数据集做二分类。数据处理好了,但是还需要改什么地方吗,输出的参数你原来是17分类,现在我需要改哪呀

yongzhuo commented 3 years ago

修改hyper_parameters里边的超参数,'label': 2,

wangzhedaye commented 3 years ago

提出来后面马上就看到参数啦,忘了提出来。不过还是谢谢博主的热心