Author: buildbot
Date: Tue Apr 21 00:25:55 2015
New Revision: 948533
Log:
Staging update by buildbot for mahout
Modified:
websites/staging/mahout/trunk/content/ (props changed)
websites/staging/mahout/trunk/content/users/environment/how-to-build-an-app.html
Propchange: websites/staging/mahout/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 21 00:25:55 2015
@@ -1 +1 @@
-1675009
+1675010
Modified:
websites/staging/mahout/trunk/content/users/environment/how-to-build-an-app.html
==============================================================================
---
websites/staging/mahout/trunk/content/users/environment/how-to-build-an-app.html
(original)
+++
websites/staging/mahout/trunk/content/users/environment/how-to-build-an-app.html
Tue Apr 21 00:25:55 2015
@@ -301,8 +301,8 @@ hout context.</p>
<p>Mahout has a helper function that reads the text delimited in
SparkEngine.indexedDatasetDFSReadElements. The function reads single elements
in a distributed way to create the IndexedDataset. </p>
<p>Notice we read in all datasets before we adjust the number of rows in them
to match the total number of users in the data. This is so the math works out
even if some users took one action but not another.</p>
<div class="codehilite"><pre><span class="o">/**</span>
- <span class="o">*</span> Read files of element tuples and create
IndexedDatasets one per action. These share a userID BiMap but have
- <span class="o">*</span> their own itemID BiMaps
+ <span class="o">*</span> Read files of element tuples and create
IndexedDatasets one per action. These share a
+ <span class="o">*</span> userID BiMap but have their own itemID BiMaps
<span class="o">*/</span>
def readActions<span class="p">(</span>actionInput: Array<span
class="p">[(</span>String<span class="p">,</span> String<span
class="p">)])</span>: Array<span class="p">[(</span>String<span
class="p">,</span> IndexedDataset<span class="p">)]</span> <span
class="o">=</span> <span class="p">{</span>
var actions <span class="o">=</span> Array<span
class="p">[(</span>String<span class="p">,</span> IndexedDataset<span
class="p">)]()</span>