You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by bu...@apache.org on 2016/04/26 21:36:51 UTC
svn commit: r986744 - in /websites/staging/mahout/trunk/content: ./
users/environment/in-core-reference.html
Author: buildbot
Date: Tue Apr 26 19:36:51 2016
New Revision: 986744
Log:
Staging update by buildbot for mahout
Modified:
websites/staging/mahout/trunk/content/ (props changed)
websites/staging/mahout/trunk/content/users/environment/in-core-reference.html
Propchange: websites/staging/mahout/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 26 19:36:51 2016
@@ -1 +1 @@
-1739667
+1741088
Modified: websites/staging/mahout/trunk/content/users/environment/in-core-reference.html
==============================================================================
--- websites/staging/mahout/trunk/content/users/environment/in-core-reference.html (original)
+++ websites/staging/mahout/trunk/content/users/environment/in-core-reference.html Tue Apr 26 19:36:51 2016
@@ -296,6 +296,9 @@ val denseVec2 = dvec(1, 0, 1,1 ,1,2)
<p>Sparse vectors:</p>
<div class="codehilite"><pre>val sparseVec1: Vector = (5 -> 1.0) :: (10 -> 2.0) :: Nil
val sparseVec1 = svec((5 -> 1.0) :: (10 -> 2.0) :: Nil)
+
+// to create a vector with specific cardinality
+val sparseVec1 = svec((5 -> 1.0) :: (10 -> 2.0) :: Nil, cardinality=20)
</pre></div>