【问题标题】:Apache Mahout- exception with file.csvApache Mahout-file.csv 异常
【发布时间】:2015-09-22 05:10:07
【问题描述】:

我是 Apache Mahout 的新手。我想对 .csv 文件进行分类 该文件的列是 id,AAAA,.....TTTT,species 每条记录的值为 ebolavirus1,123,434,34,34,322,1,1,333,4,555,zaire。 我想对物种进行分类(例如扎伊尔、苏丹、泰森林埃博拉病毒。

当我尝试运行我的代码时,它给了我以下异常:

错误:java.lang.IllegalArgumentException:错误的 numLabels:0。必须 > 0!

我遵循以下步骤:

./mahout seqdirectory --input input/labelOutput.csv --output target/out

./mahout seq2sparse --input target/out --output target/vectors

./mahout trainnb -i target/vectors/tfidf-vectors -o target/final --li target/labelIndex

你能帮帮我吗?

【问题讨论】:

    标签: java apache exception machine-learning mahout


    【解决方案1】:

    请检查您的 csv 文件是否有空行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-10
      • 2019-08-21
      • 1970-01-01
      • 1970-01-01
      • 2013-06-02
      • 1970-01-01
      • 1970-01-01
      • 2012-07-07
      相关资源
      最近更新 更多