【问题标题】:WEKA 3.7.10 not compatible format, class index differWEKA 3.7.10 格式不兼容,类索引不同
【发布时间】:2014-04-13 02:11:06
【问题描述】:

我使用 weka 进行文本分类,我有一个训练集和未标记的测试集,目标是对测试集进行分类。

在 WEKA 3.6.6 一切顺利,我可以选择提供的测试集并训练模型并获得结果。

在相同的文件上,WEKA 3.7.10 说

Train and test set are not compatible. Would you like to automatically wrap the classifier in "inputMappedClassifier" before porceeding?

当我按下 No 时,它会输出以下错误消息

Problem evaluating classfier: Train and test are not compatible Class index differ
: 2!= 0

我知道关键是类索引不同:2!= 0。

但是这是什么意思?为什么它在 WEKA 3.6.6 中有效而在 WEKA 3.7.10 中不兼容? 如何使测试集与训练集兼容?

【问题讨论】:

    标签: machine-learning classification weka


    【解决方案1】:

    当您导入提供的测试集时,您选择的类属性是否与您在训练集中使用的类属性相同?如果不更改此字段,weka 会自动选择最后一个属性作为类。

    【讨论】:

    • 首先,欢迎来到 StackOverflow!我不会对这个答案投反对票,但我想告诉你后续问题应该作为对原始问题的评论发布,而不是作为答案。否则,其他人实际上可能会否决您的答案并影响您的分数。
    猜你喜欢
    • 2017-05-12
    • 1970-01-01
    • 2017-09-22
    • 2013-01-01
    • 2013-08-31
    • 2018-10-19
    • 2012-12-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多