mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siddharth chhabra <>
Subject NPE while running testclassifier
Date Mon, 08 Nov 2010 07:24:16 GMT

I am new to mahout and am using the trunk which I was able to successfully build with maven.
I tried to run the newsgroup example and was able to train the classifier successfully.
But while running the testclassifier I got a NPE as follows -

Exception in thread "main" java.lang.NullPointerException
    at org.apache.mahout.classifier.ConfusionMatrix.getCount(
    at org.apache.mahout.classifier.ConfusionMatrix.incrementCount(
    at org.apache.mahout.classifier.ConfusionMatrix.incrementCount(
    at org.apache.mahout.classifier.ConfusionMatrix.addInstance(
    at org.apache.mahout.classifier.ResultAnalyzer.addInstance(
    at org.apache.mahout.classifier.bayes.TestClassifier.classifySequential(
    at org.apache.mahout.classifier.bayes.TestClassifier.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(
    at org.apache.hadoop.util.ProgramDriver.driver(
    at org.apache.mahout.driver.MahoutDriver.main(

I am running this locally without hadoop.
I tried following the instructions here -
I created the folder bayes-test-input and dropped in a document there for testing purposes
but that didnt seem to work.

Any pointers will be appreciated.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message