[英]ValueError: 'logits' and 'labels' must have the same shape for NLP sentiment multi-class classifier
我正在嘗試制作一個 NLP 多類情感分類器,它將句子作為輸入並將它們分為三類(消極、中性和積極)。 但是,在訓練 model 時,我遇到了錯誤,我的 logits (None, 3) 與我的標簽 (None, 1) 大小不同,model 無法開始訓練。 我的 model 是一個多類分類器而不是多標簽 ...