You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Grant Ingersoll (Created) (JIRA)" <ji...@apache.org> on 2011/10/11 00:18:29 UTC
[jira] [Created] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
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
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
Re: [jira] [Commented] (MAHOUT-838) Make the confusion matrix
writable to a file when testing classifiers
Posted by Lance Norskog <go...@gmail.com>.
It relies on another patch that went in on October 3. Do you have an
up-to-date trunk?
https://issues.apache.org/jira/browse/MAHOUT-812
I'm glad someone's interested...
On Sun, Oct 16, 2011 at 8:08 PM, Joe Prasanna Kumar (Commented) (JIRA) <
jira@apache.org> wrote:
>
> [
> 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
>
>
>
--
Lance Norskog
goksron@gmail.com
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Joe Prasanna Kumar (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Issue Comment Edited] (MAHOUT-838) Make the confusion
matrix writable to a file when testing classifiers
Posted by "Lance Norskog (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133255#comment-13133255 ]
Lance Norskog edited comment on MAHOUT-838 at 10/22/11 6:04 AM:
----------------------------------------------------------------
Replace these files with the uploaded versions;
ConfusionMatrix.java
MatrixWritable.java
Then, apply the MAHOUT-838_mini.patch.
Somehow, my patch generation and applying tools are wildly confused by the previous patch. Also, they do not give the option to merely replace a file. Perhaps it because it is Friday. Perhaps it is because I'm using Cygwin. Perhaps it is merely because _I am bad_. Whatever the reason, I cannot create that standard patch for this upgrade.
was (Author: lancenorskog):
Replace these two files, then apply the latest MAHOUT-838.patch. Somehow, my patch generation and applying tools are wildly confused by the previous patch. Also, they do not give the option to merely replace a file.
> 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: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Lance Norskog (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133241#comment-13133241 ]
Lance Norskog commented on MAHOUT-838:
--------------------------------------
MAHOUT-812 was committed on Oct. 3. If your checkout is up-to-date, you should not need to apply it.
> 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Sean Owen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen updated MAHOUT-838:
-----------------------------
Resolution: Fixed
Fix Version/s: 0.6
Assignee: Sean Owen
Status: Resolved (was: Patch Available)
OK that looks pretty good. Committed with some tweaks.
> 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
> Assignee: Sean Owen
> Priority: Minor
> Fix For: 0.6
>
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: MAHOUT-838.patch
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144548#comment-13144548 ]
Hudson commented on MAHOUT-838:
-------------------------------
Integrated in Mahout-Quality #1151 (See [https://builds.apache.org/job/Mahout-Quality/1151/])
MAHOUT-838 add MatrixDumper
srowen : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1197822
Files :
* /mahout/trunk/integration/src/main/java/org/apache/mahout/utils/MatrixDumper.java
> 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
> Assignee: Sean Owen
> Priority: Minor
> Fix For: 0.6
>
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixDumper.java, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: MAHOUT-838.patch
This is roughly what I uploaded last time and marked 'Patch Available' (I thought). Weird.
Ok, I'm pretty happy with this one. Print* is folded into ConfusionMatrixDumper. Both Dumpers are AbstractJob.
One quirk: AbstractJob does not support optional inputPath or outputPath when you use those convenience methods.
It's a lot more streamlined as to options and features. The options to pick what tables you want are gone: you get all four HTML outputs. The low-level print methods for all are public static. Only MatrixDumper does CSV.
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: bayes-cm-10.html
Something like this, for example?
> 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: 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Affects Version/s: 0.6
Status: Patch Available (was: Open)
Redone. Everything applies, compiles, runs as doc'd.
Formatted acc'd to the Lucene format prescribed on the wiki.
All files have Apache header.
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Joe Prasanna Kumar (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135889#comment-13135889 ]
Joe Prasanna Kumar commented on MAHOUT-838:
-------------------------------------------
Lance,
In the attached html file, the confusion matrix has a summary with the labels and the Correct instance count with the % When I run testClassifier, I couldnt see this summary in the output. I exec 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 20newconfuxion
The summary is printed in the console when we run the testclassifier in a sequential mode. The toString() of ResultAnalyzer implements the summary info that is being printed in the console. Should we make the summary info as part of the ConfusionMatrix ? Should this be a separate JIRA issue ? In the end, it'd be good to be able to print / write the summary along with the matrix. plz let me know what the best approach would be.
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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Lance Norskog (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143784#comment-13143784 ]
Lance Norskog commented on MAHOUT-838:
--------------------------------------
The November 1 patch is correct:
https://issues.apache.org/jira/secure/attachment/12501764/MAHOUT-838.patch
md5: 41577c6103f8feaf3b44dee9efe53255
Apply this to a fresh trunk. All of the tests run, and the two jobs run.
There is one line that changes a HashMap to a LinkedHashMap, and that should not be there. Formatting problems- some existing code has funny indentation and this patch corrects it. Other than that, this is finished.
> 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: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Sean Owen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141114#comment-13141114 ]
Sean Owen commented on MAHOUT-838:
----------------------------------
Lance, there are still unresolved issues in this patch. For example, look at the "/tmp" issue I noted earlier. And now for example you're making a LinkedHashMap into a HashMap when I'm not sure that's correct.
To close this out, I will try to put this into a committable form on my end, and if it's all pretty minor I'll just commit it to move forward.
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Sean Owen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133866#comment-13133866 ]
Sean Owen commented on MAHOUT-838:
----------------------------------
OK, better. Now we're to small items. Javadoc must start with /** or it isn't javadoc. Always put braces on conditionals. Why are you making all the Maps into LinkedHashMap? I don't see a reason to order by access time. I see stanzas like:
String cmPath = params.get("confusionMatrix");
cmPath = "/tmp";
This can't be right can it -- are there still remanants of debugging code? likewise I see lines like "object.hashCode();" which are no-ops.
You have a comment about using AbstractJob methods -- yes, can this be done upfront?
What's the purpose of PrintConfusionMatrix? it seems like the other two new Dumper classes fulfill the role outlined in this JIRA.
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: MatrixDumper.java
Missing MatrixDumper app.
> 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
> Assignee: Sean Owen
> Priority: Minor
> Fix For: 0.6
>
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixDumper.java, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Lance Norskog (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124721#comment-13124721 ]
Lance Norskog commented on MAHOUT-838:
--------------------------------------
This is I think feature-complete&tested. Needs looking and Apache headers.
> 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Lance Norskog (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144458#comment-13144458 ]
Lance Norskog commented on MAHOUT-838:
--------------------------------------
Now we're all set to ditch matrix labels and re-implement it all :)
> 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
> Assignee: Sean Owen
> Priority: Minor
> Fix For: 0.6
>
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixDumper.java, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: MAHOUT-838.patch
Above comments are implemented.
The ConfusionMatrix default column thing is clumsy. This printing code decides that if there are no unclassified items, then the user did not intend to have unclassified items.
The MatrixDumper does row & column headers from the matrix now.
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Sean Owen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133355#comment-13133355 ]
Sean Owen commented on MAHOUT-838:
----------------------------------
Lance I tried just this, but I still get compile errors. Your posted ConfusionMatrix.java and MatrixWritable.java are identical to HEAD, but are missing methods the new code requires.
Where is cmdump.props used? is it needed?
It feels like the matrix and confusion matrix dumper have similar roles. I'd imagine they both go in examples, or both in integration? Integration feels a bit righter.
Finally I'd have a run at scrubbing style -- there are some unused imports, unthrown exceptions, constants that aren't static or final, etc.
Once you sort out your env, make up another omnibus patch here with all relevant changes.
> 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: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Issue Comment Edited] (MAHOUT-838) Make the confusion
matrix writable to a file when testing classifiers
Posted by "Lance Norskog (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124685#comment-13124685 ]
Lance Norskog edited comment on MAHOUT-838 at 10/11/11 4:52 AM:
----------------------------------------------------------------
Something like [this|^bayes-cm-10.html], for example?
was (Author: lancenorskog):
Something like this, for example?
> 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: 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Sean Owen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen updated MAHOUT-838:
-----------------------------
Attachment: MAHOUT-838.patch
OK, um, somehow when I applied the patch, the IDE showed me the change as of the last time I applied the patch. Another application worked. So some comments were out of date, but not all.
I think there are a number of small style issues with this patch, but it's close. Here is my proposal.
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Issue Comment Edited] (MAHOUT-838) Make the confusion
matrix writable to a file when testing classifiers
Posted by "Lance Norskog (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124685#comment-13124685 ]
Lance Norskog edited comment on MAHOUT-838 at 10/11/11 5:29 AM:
----------------------------------------------------------------
Something like [this|^bayes-cm-10.html], for example?
A tip for those of you who can use tools: find the Easter egg.
was (Author: lancenorskog):
Something like [this|^bayes-cm-10.html], for example?
> 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: 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: MAHOUT-838_mini.patch
> 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: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Lance Norskog (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143685#comment-13143685 ]
Lance Norskog commented on MAHOUT-838:
--------------------------------------
There's something very wrong with how I'm uploading. What I have is not what you are getting. I'll look into it.
> 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: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Ted Dunning (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139712#comment-13139712 ]
Ted Dunning commented on MAHOUT-838:
------------------------------------
No. I think both of those issues (LinkedHashMap and bad rounding) are black-ball issues.
They are going to have to be fixed eventually. Might as well be now.
For explanation, the principle behind the data type issue is that the declared type of a variable should be the weakest type possible to allow more polymorphism and freedom of implementation in other places. For instance, List arguments should be Iterable if possible instead of List or ArrayList and Map's should be Maps rather than HashMap or LinkedHashMap unless there is a *really* strong reason otherwise.
For the rounding, it is simply a matter of correctness. Adding a small number and then truncating is just not right. THis is due to a number of reasons, but the short form reason is that floating point arithmetic is more complicated than it looks. Doing rounding right in all the corner cases is harder than it looks and doing it wrong leads to code that behaves in very surprising and bad ways; these corner cases are they way they are in floating point math for very good reasons.
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Sean Owen (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139691#comment-13139691 ]
Sean Owen commented on MAHOUT-838:
----------------------------------
I'm still seeing minor issues, like funny indentation, making all HashMap into LinkedHashMap (why?) and using "+0.000001" for rounding. Is this going to be suitable for committing or should we just let it hang out in this JIRA?
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Commented] (MAHOUT-838) Make the confusion matrix writable
to a file when testing classifiers
Posted by "Lance Norskog (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139560#comment-13139560 ]
Lance Norskog commented on MAHOUT-838:
--------------------------------------
Joe-
I see your point. I have code to extract the summary in the patch. I don't know where it should go. The toString() method is not the right place for what ConfusionMatrix does now. It should be a separate static method, I think.
Lance
> 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
> Affects Versions: 0.6
> Reporter: Grant Ingersoll
> Priority: Minor
> Attachments: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Sean Owen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen updated MAHOUT-838:
-----------------------------
Affects Version/s: (was: 0.6)
This patch still doesn't work for me -- tests still fail. If this patch is a bit of a struggle, we can consider leaving it in JIRA but otherwise closing it.
> 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: ConfusionMatrix.java, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838.patch, MAHOUT-838_mini.patch, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: MatrixWritable.java
ConfusionMatrix.java
Replace these two files, then apply the latest MAHOUT-838.patch. Somehow, my patch generation and applying tools are wildly confused by the previous patch. Also, they do not give the option to merely replace a file.
> 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: ConfusionMatrix.java, MAHOUT-838.patch, MatrixWritable.java, 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
[jira] [Updated] (MAHOUT-838) Make the confusion matrix writable to
a file when testing classifiers
Posted by "Lance Norskog (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lance Norskog updated MAHOUT-838:
---------------------------------
Attachment: MAHOUT-838.patch
> 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