mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apalu...@apache.org
Subject svn commit: r1741088 - /mahout/site/mahout_cms/trunk/content/users/environment/in-core-reference.mdtext
Date Tue, 26 Apr 2016 19:36:46 GMT
Author: apalumbo
Date: Tue Apr 26 19:36:46 2016
New Revision: 1741088

URL: http://svn.apache.org/viewvc?rev=1741088&view=rev
Log:
CMS commit to mahout by apalumbo

Modified:
    mahout/site/mahout_cms/trunk/content/users/environment/in-core-reference.mdtext

Modified: mahout/site/mahout_cms/trunk/content/users/environment/in-core-reference.mdtext
URL: http://svn.apache.org/viewvc/mahout/site/mahout_cms/trunk/content/users/environment/in-core-reference.mdtext?rev=1741088&r1=1741087&r2=1741088&view=diff
==============================================================================
--- mahout/site/mahout_cms/trunk/content/users/environment/in-core-reference.mdtext (original)
+++ mahout/site/mahout_cms/trunk/content/users/environment/in-core-reference.mdtext Tue Apr
26 19:36:46 2016
@@ -19,6 +19,9 @@ Sparse vectors:
 
     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)
     
 Inline matrix initialization, either sparse or dense, is always done row wise. 
 



Mime
View raw message