You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Suman Somasundar (JIRA)" <ji...@apache.org> on 2014/12/18 23:58:13 UTC
[jira] [Updated] (MAHOUT-1635) Getting an exception when I provide
classification labels manually for Naive Bayes
[ https://issues.apache.org/jira/browse/MAHOUT-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Suman Somasundar updated MAHOUT-1635:
-------------------------------------
Attachment: zip_1
Sample Data set
> Getting an exception when I provide classification labels manually for Naive Bayes
> ----------------------------------------------------------------------------------
>
> Key: MAHOUT-1635
> URL: https://issues.apache.org/jira/browse/MAHOUT-1635
> Project: Mahout
> Issue Type: Bug
> Components: Classification
> Affects Versions: 1.0
> Reporter: Suman Somasundar
> Attachments: zip_1
>
>
> If I let the Naive Bayes program itself extract the classification labels, the program runs fine. But, I get the following error when I provide the classification labels for the dataset manually.
> Error: java.lang.IllegalArgumentException: Wrong numLabels: 0. Must be > 0!
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
> at org.apache.mahout.classifier.naivebayes.training.WeightsMapper.setup(WeightsMapper.java:45)
> at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142)
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:784)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:169)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1640)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:164)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)