问题描述
对于weka来说,这是新的,我对这个工具感到困惑。我需要做的是拥有关于水果价格和相关属性的数据集,并尝试使用数据集预测具体水果价格。由于我是新来的weka,我无法弄明白如何做这个任务。请帮助我或指导我一个关于如何做预测的教程,以及最好的方法或算法来完成这项任务。谢谢。
如果您想了解更多关于如何保存训练有素的分类器并稍后加载预测,请参考以下内容。 p>
假设您要使用Weka GUI,您必须通过以下两个步骤:
-
首先使用一些预先标记的数据列表分类器[使用你的水果价格数据]。确保它是ARFF格式。训练后将模型保存到磁盘。
可以在这里找到更多内容: -
在第二步中,您已经使用已经训练的模型[在步骤1完成]。确切地说,您必须加载模型文件[在步骤1中保存],然后使用分类器选项卡上的提供的测试集选项。在提供的测试集选项中,选择未标记的数据
更多可以在这里找到:
我建议首先使用已经提供的ARFF数据与您的Weka安装[这些ARFF文件基本上位于您的Weka安装目录下,我的情况是:C:\Program Files\Weka-3-7\data]。
一些更有用的URLS:
希望有所帮助。
Im new to weka and I'm confused with the tool. What I needed to do is im having a data set about fruit price and relating attributes and im trying to predict the specific fruit price using the data set. Since I'm new to weka I couldn't figure out how to do this task. Please help me or guide me to a tutorial about how to do predictions and what is the best method or the algorithm to do this task.
Thank You.
If you want to know more about how to save a trained classifier and load the same later on to predict, please refer the following.
With the assumption that you want to use the Weka GUI, you have to go through 2 steps as below:
First using some pre-labelled data train a classifier[use your fruit prices data]. Make sure it is in ARFF format. After training save the model to your disk.More on this can be found here: http://weka.wikispaces.com/Saving+and+loading+models
In the second step, you have use the already trained model[done in step 1]. Precisely you have to load the model file[saved in step 1] and then use the 'supplied test set" option on the "Classifiers" tab. In "supplied test set" option select the un-labelled data.More on this can be found here: http://weka.wikispaces.com/Making+predictions
I would suggest first playing around with the already provided ARFF data with your Weka install [these ARFF files basically sitting under your Weka install directory, In my case it is under: C:\Program Files\Weka-3-7\data].
Some more useful URLS:
- http://www.ibm.com/developerworks/opensource/library/os-weka1/index.html
- http://ortho.clmed.ncku.edu.tw/~emba/2006EMBA_MIS/3_16_2006/WekaIntro.pdf
Hope that helps.
这篇关于如何使用weka来预测结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!