如何在Weka的资源管理器中应用分类器? [英] How to apply classifier in Weka's Explorer?
问题描述
比方说,我已经建立了一个模型(例如J4.8树)并通过交叉验证对其进行了评估.如何使用此模型对新数据集进行分类?我知道,我可以使用设置的测试集"选项设置一个带有数据分类的文件,在更多选项"窗口中标记输出预测",然后再次运行分类.它几乎可以满足我的需求,但这似乎是一个非常奇怪的工作流程.此外,它会重新创建所有模型,这可能会花费不必要的时间.有没有更直接的方法可以对已经建立的模型进行分类?
Let's say, I've build a model (e.g. J4.8 tree) and evaluated it with cross-validation. How can I use this model to classify new dataset? I know, I can set a file with the data to classify with "Supplied test set" option, mark "Output predictions" in "More options" window and run classification again. It will produce nearly what I need, but it seems to be a very strange workflow. Also, it re-creates all the model, which can take unnecessary time. Is there more straightforward way to do classification with already built model?
推荐答案
misc程序包中有一个特殊的类SerializedClassifier,它以模型文件为参数并具有模拟训练阶段.
There are special class SerializedClassifier in misc package, it takes model file as parameter and has mock training phase.
这篇关于如何在Weka的资源管理器中应用分类器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!