我正在尝试训练一个模型,但是当我拟合模型时,我得到了以下错误: ValueError: Found input variables with inconsistent numbers of samples: [1, 3608] 下面是我的代码: data = pd.read_csv("/Users/amanpuranik/Desktop/fake-news-detection/data.csv")
dataPipeline([('vectorizer', tfidf_v
我使用的数据是这样的。为了利用LightBGM,我使用了X=X.dropna(),以防止以后出现与“输入内容NaN、无穷大或对于数据类型来说太大的值(‘float64’)”相关的错误。然而, ValueError: Found input variables with inconsistent numbers of samples: [2348, 2356]" 导致的错误。我认为是X=X.dropna()造成了错误,因为它