mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: 20newsgroups example does not print verbose output
Date Fri, 02 Dec 2011 03:18:09 GMT
Good question. Sending these things to logging is useless anyway; I'd
rather have a separate sequencefile or CSV file that I can work with.

On Thu, Dec 1, 2011 at 10:24 AM, magicalo <magica1980@yahoo.com> wrote:

> Hello,
>
> I have ran the 20newsgroups example on my own data set. It runs
> successfully
> and prints the summary output. However, I have enabled the verbose option
> in
> the script when I run the testclassifier, but I don't see any verbose
> output.
> I am interested in seeing exactly which data was misclassified.
> I am running the command in hdfs mode. I was expecting this verbose output
> be spilled on the command line, but I am not getting anything. I am also
> not
> seeing any log file or other file on the hdfs that would have this
> comparison:
>
> a       b       c       <--Classified as
> 89      11      0        |  100     a     = out
> 1       99      0        |  100     b     = in
> 0       0       0        |  0       c     = unknown
>
>
> Based on the TestClassifier.java class, I should be seeing this printed
> somewhere:
> log.info("Line Number: " + lineNum + " Line(30): "
> + (line.length() > 30 ? line.substring(0, 30) : line)
> + " Expected Label: " + correctLabel + " Classified Label: "
> + classifiedLabel.getLabel() + " Correct: " + correct);
>
>
> The exact command that I am running is:
> mahout testclassifier \
>  -m ${WORK_DIR}/myproj-bydate/bayes-model \
>  -d ${WORK_DIR}/myproj-bydate/bayes-test-input \
>  -type bayes \
>  -ng 1 \
>  -source hdfs \
>  -v \
>  -method mapreduce
>
> Any suggestions? Thanks
>
>


-- 
Lance Norskog
goksron@gmail.com

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