You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by is...@apache.org on 2013/11/20 17:54:14 UTC

svn commit: r1543871 - /mahout/site/mahout_cms/trunk/content/users/classification/bayesian-commandline.mdtext

Author: isabel
Date: Wed Nov 20 16:54:13 2013
New Revision: 1543871

URL: http://svn.apache.org/r1543871
Log:
MAHOUT-1245 - reformat bayes command line page

Modified:
    mahout/site/mahout_cms/trunk/content/users/classification/bayesian-commandline.mdtext

Modified: mahout/site/mahout_cms/trunk/content/users/classification/bayesian-commandline.mdtext
URL: http://svn.apache.org/viewvc/mahout/site/mahout_cms/trunk/content/users/classification/bayesian-commandline.mdtext?rev=1543871&r1=1543870&r2=1543871&view=diff
==============================================================================
--- mahout/site/mahout_cms/trunk/content/users/classification/bayesian-commandline.mdtext (original)
+++ mahout/site/mahout_cms/trunk/content/users/classification/bayesian-commandline.mdtext Wed Nov 20 16:54:13 2013
@@ -1,53 +1,59 @@
 Title: bayesian-commandline
+
+# Naive Bayes commandline documentation
+
 <a name="bayesian-commandline-Introduction"></a>
-# Introduction
+## Introduction
 
 This quick start page describes how to run the naive bayesian and
 complementary naive bayesian classification algorithms on a Hadoop cluster.
 
 <a name="bayesian-commandline-Steps"></a>
-# Steps
+## Steps
 
 <a name="bayesian-commandline-Testingitononesinglemachinew/ocluster"></a>
-## Testing it on one single machine w/o cluster
+### Testing it on one single machine w/o cluster
 
 In the examples directory type:
 
     mvn -q exec:java
--Dexec.mainClass="org.apache.mahout.classifier.bayes.mapreduce.bayes.<JOB>"
--Dexec.args="<OPTIONS>"
+        -Dexec.mainClass="org.apache.mahout.classifier.bayes.mapreduce.bayes.<JOB>"
+        -Dexec.args="<OPTIONS>"
+
     mvn -q exec:java
--Dexec.mainClass="org.apache.mahout.classifier.bayes.mapreduce.cbayes.<JOB>"
--Dexec.args="<OPTIONS>"
+        -Dexec.mainClass="org.apache.mahout.classifier.bayes.mapreduce.cbayes.<JOB>"
+        -Dexec.args="<OPTIONS>"
 
 
 <a name="bayesian-commandline-Runningitonthecluster"></a>
-## Running it on the cluster
+### Running it on the cluster
 
 * In $MAHOUT_HOME/, build the jar containing the job (mvn install) The job
 will be generated in $MAHOUT_HOME/core/target/ and it's name will contain
 the Mahout version number. For example, when using Mahout 0.1 release, the
 job will be mahout-core-0.1.jar
+
 * (Optional) 1 Start up Hadoop: $HADOOP_HOME/bin/start-all.sh
+
 * Put the data: $HADOOP_HOME/bin/hadoop fs -put <PATH TO DATA> testdata
+
 * Run the Job: $HADOOP_HOME/bin/hadoop jar
-$MAHOUT_HOME/core/target/mahout-core-<MAHOUT VERSION>.job
-org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesDriver <OPTIONS>
+
+    $MAHOUT_HOME/core/target/mahout-core-<MAHOUT VERSION>.job
+        org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesDriver <OPTIONS>
+
 * Get the data out of HDFS and have a look. Use bin/hadoop fs -lsr output
 to view all outputs.
 
 <a name="bayesian-commandline-Commandlineoptions"></a>
-# Command line options
+## Command line options
 
-    BayesDriver, BayesThetaNormalizerDriver, CBayesNormalizedWeightDriver,
-CBayesDriver, CBayesThetaDriver, CBayesThetaNormalizerDriver,
-BayesWeightSummerDriver, BayesFeatureDriver, BayesTfIdfDriver Usage:
-     [--input <input> --output <output> --help]
-    
+    BayesDriver, BayesThetaNormalizerDriver, CBayesNormalizedWeightDriver, CBayesDriver, CBayesThetaDriver, CBayesThetaNormalizerDriver, BayesWeightSummerDriver, BayesFeatureDriver, BayesTfIdfDriver Usage:
+        [--input <input> --output <output> --help]
+      
     Options
     
-      --input (-i) input	  The Path for input Vectors. Must be a
-SequenceFile of Writable, Vector.
+      --input (-i) input	  The Path for input Vectors. Must be a SequenceFile of Writable, Vector.
       --output (-o) output	  The directory pathname for output points.
       --help (-h)		  Print out help.