Author: pat
Date: Tue Apr 21 19:01:28 2015
New Revision: 1675184
URL: http://svn.apache.org/r1675184
Log:
CMS commit to mahout by pat
Modified:
mahout/site/mahout_cms/trunk/content/users/environment/how-to-build-an-app.mdtext
Modified:
mahout/site/mahout_cms/trunk/content/users/environment/how-to-build-an-app.mdtext
URL:
http://svn.apache.org/viewvc/mahout/site/mahout_cms/trunk/content/users/environment/how-to-build-an-app.mdtext?rev=1675184&r1=1675183&r2=1675184&view=diff
==============================================================================
---
mahout/site/mahout_cms/trunk/content/users/environment/how-to-build-an-app.mdtext
(original)
+++
mahout/site/mahout_cms/trunk/content/users/environment/how-to-build-an-app.mdtext
Tue Apr 21 19:01:28 2015
@@ -21,12 +21,10 @@ Using Mahout as a library in an applicat
This will look a little different than Java since ```App``` does delayed
initialization, which causes the main body to be executed when the App is
launched, just as in Java you would create a CooccurrenceDriver.main.
-Before we can execute something on Spark we'll need to create a context. We
could use raw Spark calls here but default values are setup for a Ma // strip
off names, which only takes and array of IndexedDatasets
- val indicatorMatrices = SimilarityAnalysis.cooccurrencesIDSs(actions.map(a
=> a._2))
-hout context.
+Before we can execute something on Spark we'll need to create a context. We
could use raw Spark calls here but default values are setup for a Mahout
context.
-
- implicit val mc = mahoutSparkContext(masterUrl = "local", appName =
"2-input-cooc")
+ implicit val mc = mahoutSparkContext(masterUrl = "local",
+ appName = "CooccurrenceDriver")
We need to read in three files containing different interaction types. The
files will each be read into a Mahout IndexedDataset. This allows us to
preserve application-specific user and item IDs throughout the calculations.
@@ -143,7 +141,8 @@ See the Github project for the full sour
packSettings
- packMain := Map("cooc" -> "CooccurrenceDriver")
+ packMain := Map(
+ "cooc" -> "CooccurrenceDriver")
##Build