You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Sandeep Narayanaswami (JIRA)" <ji...@apache.org> on 2017/03/04 02:02:45 UTC

[jira] [Created] (SYSTEMML-1371) The "sparsity" parameter for the "rand" function is confusingly named

Sandeep Narayanaswami created SYSTEMML-1371:
-----------------------------------------------

             Summary: The "sparsity" parameter for the "rand" function is confusingly named
                 Key: SYSTEMML-1371
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1371
             Project: SystemML
          Issue Type: Bug
            Reporter: Sandeep Narayanaswami
            Priority: Minor


Current definition: "sparsity: fraction of non-zero cells."
IMO, this would be more appropriately termed the "density": I'd expect that setting sparsity=0 (equivalently density=1) returns a fully dense matrix. (Setting sparsity=0 currently throws an error.)

The current definition is at odds with how scipy (https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.sparse.rand.html) and R's Matrix package (https://stat.ethz.ch/R-manual/R-devel/library/Matrix/html/rsparsematrix.html) handle their sparse matrices. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)