Author: pat
Date: Tue Apr 21 00:32:00 2015
New Revision: 1675013
URL: http://svn.apache.org/r1675013
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=1675013&r1=1675012&r2=1675013&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 00:32:00 2015
@@ -74,7 +74,8 @@ Notice we read in all datasets before we
val resizedNameActionPairs = actions.map { a =>
//resize the matrix by, in effect by adding empty rows
- val resizedMatrix = a._2.create(a._2.matrix, userDictionary,
a._2.columnIDs).newRowCardinality(numUsers)
+ val resizedMatrix =
+ a._2.create(a._2.matrix, userDictionary,
a._2.columnIDs).newRowCardinality(numUsers)
(a._1, resizedMatrix) // return the Tuple of (name, IndexedDataset)
}
resizedNameActionPairs // return the array of Tuples