You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gs...@apache.org on 2010/05/27 17:36:52 UTC
svn commit: r948862 -
/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java
Author: gsingers
Date: Thu May 27 15:36:52 2010
New Revision: 948862
URL: http://svn.apache.org/viewvc?rev=948862&view=rev
Log:
Slight javadoc and description changes
Modified:
mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java
Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java?rev=948862&r1=948861&r2=948862&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java Thu May 27 15:36:52 2010
@@ -39,7 +39,9 @@ import org.slf4j.LoggerFactory;
/**
* Train the Naive Bayes classifier with improved weighting
* <p/>
- * To run the twenty newsgroups example: refer http://cwiki.apache.org/MAHOUT/twentynewsgroups.html
+ * A properly formatted file for input is one which has one document per line with the first entry as the label and the rest as evidence.
+ *
+ * @see org.apache.mahout.classifier.BayesFileFormatter
*/
public final class TrainClassifier {
@@ -66,11 +68,11 @@ public final class TrainClassifier {
Option inputDirOpt = obuilder.withLongName("input").withRequired(true).withArgument(
abuilder.withName("input").withMinimum(1).withMaximum(1).create()).withDescription(
- "The Directory on HDFS containing the collapsed, properly formatted files").withShortName("i").create();
+ "The Directory on HDFS containing the collapsed, properly formatted files: One doc per line, first entry on the line is the label, rest is the evidence").withShortName("i").create();
Option outputOpt = obuilder.withLongName("output").withRequired(true).withArgument(
abuilder.withName("output").withMinimum(1).withMaximum(1).create()).withDescription(
- "The location of the modelon the HDFS").withShortName("o").create();
+ "The location of the model on the HDFS").withShortName("o").create();
Option gramSizeOpt = obuilder.withLongName("gramSize").withRequired(true).withArgument(
abuilder.withName("gramSize").withMinimum(1).withMaximum(1).create()).withDescription(
Re: svn commit: r948862 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java
Posted by Robin Anil <ro...@gmail.com>.
> http://hudson/job/Mahout-Quality/build?token=<TOKEN> on every build.
I mean I know it need access to the svn server for doing that. Just
want to know if any other project is using this.
Re: svn commit: r948862 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java
Posted by Robin Anil <ro...@gmail.com>.
> That's probably because there was no polling frequency defined for
> Mahout-Quality. I set it to the recommended "@hourly", so Hudson
> should now check once an hour whether there's a need to fire up a new
> build.
>
Ahh. Thanks Jukka for doing that.
Re: svn commit: r948862 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Thu, May 27, 2010 at 5:39 PM, Robin Anil <ro...@gmail.com> wrote:
> It seems poll SCM is not working properly, no build is getting fired
> on a commit.
That's probably because there was no polling frequency defined for
Mahout-Quality. I set it to the recommended "@hourly", so Hudson
should now check once an hour whether there's a need to fire up a new
build.
BR,
Jukka Zitting
Re: svn commit: r948862 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TrainClassifier.java
Posted by Robin Anil <ro...@gmail.com>.
It seems poll SCM is not working properly, no build is getting fired
on a commit. Its as easy as calling
http://hudson/job/Mahout-Quality/build?token=<TOKEN> on every build.
Any one has any idea how to configure post commit hook on svn ?