Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E3011177D3 for ; Sat, 4 Apr 2015 17:24:33 +0000 (UTC) Received: (qmail 80684 invoked by uid 500); 4 Apr 2015 17:24:33 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 80601 invoked by uid 500); 4 Apr 2015 17:24:33 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 80590 invoked by uid 99); 4 Apr 2015 17:24:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2015 17:24:33 +0000 Date: Sat, 4 Apr 2015 17:24:33 +0000 (UTC) From: "Andrew Palumbo (JIRA)" To: dev@mahout.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAHOUT-1635) Getting an exception when I provide classification labels manually for Naive Bayes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAHOUT-1635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14395831#comment-14395831 ] Andrew Palumbo commented on MAHOUT-1635: ---------------------------------------- [~sumansomasundar] We're currently implementing all new features in our Spark and H2O backed Mahout Environment. We will be releasing a Spark version of Naive Bayes soon in Mahout v0.10.0. Please feel free to file a Feature request for this in a future version. Thank you for the bug report. > 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: 0.9 > Reporter: Suman Somasundar > Assignee: Andrew Palumbo > Labels: legacy > Fix For: 0.10.0 > > 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)