如何使用 Weka 预测结果 [英] How to use Weka for predicting results

查看:67
本文介绍了如何使用 Weka 预测结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Weka 的新手,我对这个工具感到困惑.我有一个关于水果价格和相关属性的数据集.我正在尝试使用数据集预测特定的水果价格.由于我是 Weka 的新手,我无法弄清楚如何完成这项任务.请帮助我或指导我学习有关如何进行预测的教程,以及执行此任务的最佳方法或算法是什么.

I'm new to Weka and I'm confused with the tool. I have a data set about fruit prices and related attributes. I'm 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 algorithm for this task.

推荐答案

如果您想了解更多关于保存训练好的分类器并稍后加载以进行预测的信息,请参阅以下内容.

If you want to know more about saving a trained classifier and loading it later to predict, please refer to the following.

假设您要使用 Weka GUI,您必须经过以下两个步骤:

With the assumption that you want to use the Weka GUI, you have to go through these two steps:

  1. 首先,使用一些预先标记的数据来训练分类器(使用您的水果价格数据).确保数据为 ARFF 格式.训练后,将模型保存到磁盘.有关更多信息,请访问:https://waikato.github.io/weka-wiki/Saving_and_loading_models/

在第二步中,您使用已经训练好的模型(在第 1 步中完成).具体来说,您必须加载模型文件(在步骤 1 中保存),然后使用提供的测试集".分类器"上的选项标签.在提供的测试集"中选项,选择未标记的数据.有关更多信息,请访问:https://waikato.github.io/weka-wiki/making_predictions/

In the second step, you use the already trained model (done in step 1). Specifically, you have to load the model file (saved in step 1) and then use the 'supplied test set" option on the "Classifiers" tab. In the "supplied test set" option, select the un-labelled data. More on this can be found here: https://waikato.github.io/weka-wiki/making_predictions/

我建议您首先使用 Weka 安装附带的 ARFF 数据文件(这些 ARFF 文件基本上位于您的 Weka 安装目录下.在我的情况下,它位于:C:\Program Files\Weka-3-7\数据).

I would suggest first playing around with the ARFF data files that come with your Weka install (these ARFF files are basically sitting under your Weka install directory. In my case it is under: C:\Program Files\Weka-3-7\data).

一些更有用的网址:

  1. https://developer.ibm.com/technologies/analytics/文章/os-weka1/
  2. http://ortho.clmed.ncku.edu.tw/~emba/2006EMBA_MIS/3_16_2006/WekaIntro.pdf

希望有所帮助.

这篇关于如何使用 Weka 预测结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆