如何对文本数据集执行交叉验证

时间:2019-05-15 09:55:59

标签: text python-3.6 cross-validation

如何为我的文本数据集计算交叉验证。我的文本数据集由文本和标签组成,此外,我也有基本道理 原始数据集看起来像

x=['i hate this movie','this movie is bad','this movie is not good']
x_predict=[0,1,0]
y=['i hate this movie','this movie is bad','this movie is not good']
y_true=[1,1,1]

x和x_predict是我从各种分类器获得的预测。 y和y_true是基本事实。如何计算x_predict的交叉验证得分。

0 个答案:

没有答案
相关问题