【问题标题】:Mahout - How do I format my input for Naive Bayes classificationMahout - 如何格式化我的输入以进行朴素贝叶斯分类
【发布时间】:2013-09-25 03:37:07
【问题描述】:

我想在 Mahout 中运行朴素贝叶斯分类器来解决分类问题。
我到处搜索如何格式化我的输入,以及如何指定 mahout 的输入,但没有找到任何有用的信息。

唯一对远程有用的页面是
What are the steps needed to use Mahout Native Bayes Classifier Algorithm?

但是,即使在那里,答案的作者似乎也使用了一个名为 tt 的自定义脚本来解析输入。

如果有人知道如何为 Mahout 算法提供输入,请帮助..

【问题讨论】:

    标签: input mahout


    【解决方案1】:

    我找到了以下网站:http://chimpler.wordpress.com/2013/03/13/using-the-mahout-naive-bayes-classifier-to-automatically-classify-twitter-messages/

    显然 Mahout 本身也在格式化方面提供了一些帮助。您可以将一个选项传递给 mahout 二进制文件,称为 seq2encoded、seq2sparse、seqdirectory 等。关于它们的使用我不知道很多细节。这个网站有更多:https://cwiki.apache.org/confluence/display/MAHOUT/Quick+tour+of+text+analysis+using+the+Mahout+command+line

    我不认为这会带你一路走好,但希望它会有所帮助。

    EDIT1:https://cwiki.apache.org/confluence/display/MAHOUT/Creating+Vectors

    EDIT2:http://www.datastax.com/dev/blog/apache-mahout-in-datastax-enterprise-building-a-classification-system

    【讨论】:

      猜你喜欢
      • 2011-12-28
      • 2012-04-28
      • 2012-07-15
      • 2014-07-01
      • 2012-07-02
      • 2012-01-24
      • 2015-08-27
      • 2017-01-10
      相关资源
      最近更新 更多