[
https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128616#comment-13128616
]
Joe Prasanna Kumar commented on MAHOUT-838:
-------------------------------------------
Lance,
I just tried applying your patch and ran the TestClassifier as below
$./bin/mahout testclassifier -m
/tmp/mahout-work-joekumar/20news-bydate/bayes-model -d
/tmp/mahout-work-joekumar/20news-bydate/bayes-test-input -type bayes -ng 1
-source hdfs -method mapreduce -cm 20newsconfusion
and got the below exception
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method getMatrix() is undefined for the type ConfusionMatrix
at
org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesClassifierDriver.confusionMatrixSeqFileExport(BayesClassifierDriver.java:144)
at
org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesClassifierDriver.runJob(BayesClassifierDriver.java:94)
at
org.apache.mahout.classifier.bayes.TestClassifier.classifyParallel(TestClassifier.java:291)
at
org.apache.mahout.classifier.bayes.TestClassifier.main(TestClassifier.java:194)
...
...
I searched in the patch file to see an implementation getMatrix() but couldnt
find any. Is there a dependent patch or something ? plz let me know if i'm
missing something
Currently when TestClassifier is run with method option as mapreduce, it doesnt
print the Summary. Printing a confusion matrix similar to the screenshot you
have attached in this task would be great.
thanks
Joe.
> Make the confusion matrix writable to a file when testing classifiers
> ---------------------------------------------------------------------
>
> Key: MAHOUT-838
> URL: https://issues.apache.org/jira/browse/MAHOUT-838
> Project: Mahout
> Issue Type: Improvement
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: MAHOUT-838.patch, bayes-cm-10.html
>
>
> If you have a lot of labels for a classifier, the confusion matrix is hard to
> fit in terminal window. Would be nice if we could write it out to a file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira