mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r887378 - in /websites/staging/mahout/trunk/content: ./ users/classification/bayesian-commandline.html
Date Wed, 20 Nov 2013 16:54:17 GMT
Author: buildbot
Date: Wed Nov 20 16:54:17 2013
New Revision: 887378

Log:
Staging update by buildbot for mahout

Modified:
    websites/staging/mahout/trunk/content/   (props changed)
    websites/staging/mahout/trunk/content/users/classification/bayesian-commandline.html

Propchange: websites/staging/mahout/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Nov 20 16:54:17 2013
@@ -1 +1 @@
-1543870
+1543871

Modified: websites/staging/mahout/trunk/content/users/classification/bayesian-commandline.html
==============================================================================
--- websites/staging/mahout/trunk/content/users/classification/bayesian-commandline.html (original)
+++ websites/staging/mahout/trunk/content/users/classification/bayesian-commandline.html Wed
Nov 20 16:54:17 2013
@@ -381,57 +381,62 @@
 
   <div id="content-wrap" class="clearfix">
    <div id="main">
-    <p><a name="bayesian-commandline-Introduction"></a></p>
-<h1 id="introduction">Introduction</h1>
+    <h1 id="naive-bayes-commandline-documentation">Naive Bayes commandline documentation</h1>
+<p><a name="bayesian-commandline-Introduction"></a></p>
+<h2 id="introduction">Introduction</h2>
 <p>This quick start page describes how to run the naive bayesian and
 complementary naive bayesian classification algorithms on a Hadoop cluster.</p>
 <p><a name="bayesian-commandline-Steps"></a></p>
-<h1 id="steps">Steps</h1>
+<h2 id="steps">Steps</h2>
 <p><a name="bayesian-commandline-Testingitononesinglemachinew/ocluster"></a></p>
-<h2 id="testing-it-on-one-single-machine-wo-cluster">Testing it on one single machine
w/o cluster</h2>
+<h3 id="testing-it-on-one-single-machine-wo-cluster">Testing it on one single machine
w/o cluster</h3>
 <p>In the examples directory type:</p>
 <div class="codehilite"><pre><span class="n">mvn</span> <span
class="o">-</span><span class="n">q</span> <span class="n">exec</span><span
class="p">:</span><span class="n">java</span>
+    <span class="o">-</span><span class="n">Dexec</span><span
class="p">.</span><span class="n">mainClass</span><span class="p">=</span>&quot;<span
class="n">org</span><span class="p">.</span><span class="n">apache</span><span
class="p">.</span><span class="n">mahout</span><span class="p">.</span><span
class="n">classifier</span><span class="p">.</span><span class="n">bayes</span><span
class="p">.</span><span class="n">mapreduce</span><span class="p">.</span><span
class="n">bayes</span><span class="p">.</span><span class="o">&lt;</span><span
class="n">JOB</span><span class="o">&gt;</span>&quot;
+    <span class="o">-</span><span class="n">Dexec</span><span
class="p">.</span><span class="n">args</span><span class="p">=</span>&quot;<span
class="o">&lt;</span><span class="n">OPTIONS</span><span class="o">&gt;</span>&quot;
+
+<span class="n">mvn</span> <span class="o">-</span><span class="n">q</span>
<span class="n">exec</span><span class="p">:</span><span class="n">java</span>
+    <span class="o">-</span><span class="n">Dexec</span><span
class="p">.</span><span class="n">mainClass</span><span class="p">=</span>&quot;<span
class="n">org</span><span class="p">.</span><span class="n">apache</span><span
class="p">.</span><span class="n">mahout</span><span class="p">.</span><span
class="n">classifier</span><span class="p">.</span><span class="n">bayes</span><span
class="p">.</span><span class="n">mapreduce</span><span class="p">.</span><span
class="n">cbayes</span><span class="p">.</span><span class="o">&lt;</span><span
class="n">JOB</span><span class="o">&gt;</span>&quot;
+    <span class="o">-</span><span class="n">Dexec</span><span
class="p">.</span><span class="n">args</span><span class="p">=</span>&quot;<span
class="o">&lt;</span><span class="n">OPTIONS</span><span class="o">&gt;</span>&quot;
 </pre></div>
 
 
-<p>-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>"</p>
 <p><a name="bayesian-commandline-Runningitonthecluster"></a></p>
-<h2 id="running-it-on-the-cluster">Running it on the cluster</h2>
+<h3 id="running-it-on-the-cluster">Running it on the cluster</h3>
 <ul>
-<li>In $MAHOUT_HOME/, build the jar containing the job (mvn install) The job
+<li>
+<p>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</li>
-<li>(Optional) 1 Start up Hadoop: $HADOOP_HOME/bin/start-all.sh</li>
-<li>Put the data: $HADOOP_HOME/bin/hadoop fs -put <PATH TO DATA> testdata</li>
-<li>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></li>
-<li>Get the data out of HDFS and have a look. Use bin/hadoop fs -lsr output
-to view all outputs.</li>
+job will be mahout-core-0.1.jar</p>
+</li>
+<li>
+<p>(Optional) 1 Start up Hadoop: $HADOOP_HOME/bin/start-all.sh</p>
+</li>
+<li>
+<p>Put the data: $HADOOP_HOME/bin/hadoop fs -put <PATH TO DATA> testdata</p>
+</li>
+<li>
+<p>Run the Job: $HADOOP_HOME/bin/hadoop jar</p>
+<p>$MAHOUT_HOME/core/target/mahout-core-<MAHOUT VERSION>.job
+    org.apache.mahout.classifier.bayes.mapreduce.bayes.BayesDriver <OPTIONS></p>
+</li>
+<li>
+<p>Get the data out of HDFS and have a look. Use bin/hadoop fs -lsr output
+to view all outputs.</p>
+</li>
 </ul>
 <p><a name="bayesian-commandline-Commandlineoptions"></a></p>
-<h1 id="command-line-options">Command line options</h1>
-<div class="codehilite"><pre><span class="n">BayesDriver</span><span
class="p">,</span> <span class="n">BayesThetaNormalizerDriver</span><span
class="p">,</span> <span class="n">CBayesNormalizedWeightDriver</span><span
class="p">,</span>
+<h2 id="command-line-options">Command line options</h2>
+<div class="codehilite"><pre><span class="n">BayesDriver</span><span
class="p">,</span> <span class="n">BayesThetaNormalizerDriver</span><span
class="p">,</span> <span class="n">CBayesNormalizedWeightDriver</span><span
class="p">,</span> <span class="n">CBayesDriver</span><span class="p">,</span>
<span class="n">CBayesThetaDriver</span><span class="p">,</span> <span
class="n">CBayesThetaNormalizerDriver</span><span class="p">,</span>
<span class="n">BayesWeightSummerDriver</span><span class="p">,</span>
<span class="n">BayesFeatureDriver</span><span class="p">,</span>
<span class="n">BayesTfIdfDriver</span> <span class="n">Usage</span><span
class="p">:</span>
+    <span class="p">[</span><span class="o">--</span><span class="n">input</span>
<span class="o">&lt;</span><span class="n">input</span><span
class="o">&gt;</span> <span class="o">--</span><span class="n">output</span>
<span class="o">&lt;</span><span class="n">output</span><span
class="o">&gt;</span> <span class="o">--</span><span class="n">help</span><span
class="p">]</span>
+
+<span class="n">Options</span>
+
+  <span class="o">--</span><span class="n">input</span> <span
class="p">(</span><span class="o">-</span><span class="nb">i</span><span
class="p">)</span> <span class="n">input</span>      <span class="n">The</span>
<span class="n">Path</span> <span class="k">for</span> <span class="n">input</span>
<span class="n">Vectors</span><span class="p">.</span> <span class="n">Must</span>
<span class="n">be</span> <span class="n">a</span> <span class="n">SequenceFile</span>
<span class="n">of</span> <span class="n">Writable</span><span
class="p">,</span> <span class="n">Vector</span><span class="p">.</span>
+  <span class="o">--</span><span class="n">output</span> <span
class="p">(</span><span class="o">-</span><span class="n">o</span><span
class="p">)</span> <span class="n">output</span>    <span class="n">The</span>
<span class="n">directory</span> <span class="n">pathname</span> <span
class="k">for</span> <span class="n">output</span> <span class="n">points</span><span
class="p">.</span>
+  <span class="o">--</span><span class="n">help</span> <span class="p">(</span><span
class="o">-</span><span class="n">h</span><span class="p">)</span>
        <span class="n">Print</span> <span class="n">out</span> <span
class="n">help</span><span class="p">.</span>
 </pre></div>
-
-
-<p>CBayesDriver, CBayesThetaDriver, CBayesThetaNormalizerDriver,
-BayesWeightSummerDriver, BayesFeatureDriver, BayesTfIdfDriver Usage:
-     [--input <input> --output <output> --help]</p>
-<div class="codehilite"><pre><span class="n">Options</span>
-
-  <span class="o">--</span><span class="n">input</span> <span
class="p">(</span><span class="o">-</span><span class="nb">i</span><span
class="p">)</span> <span class="n">input</span>      <span class="n">The</span>
<span class="n">Path</span> <span class="k">for</span> <span class="n">input</span>
<span class="n">Vectors</span><span class="p">.</span> <span class="n">Must</span>
<span class="n">be</span> <span class="n">a</span>
-</pre></div>
-
-
-<p>SequenceFile of Writable, Vector.
-      --output (-o) output    The directory pathname for output points.
-      --help (-h)         Print out help.</p>
    </div>
   </div>     
 </div> 



Mime
View raw message