You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Mike Dusenberry (JIRA)" <ji...@apache.org> on 2016/02/12 19:35:18 UTC

[jira] [Created] (SYSTEMML-515) 'Sparsity' Parameter For `rand` Statement Should Allow Expression

Mike Dusenberry created SYSTEMML-515:
----------------------------------------

             Summary: 'Sparsity' Parameter For `rand` Statement Should Allow Expression
                 Key: SYSTEMML-515
                 URL: https://issues.apache.org/jira/browse/SYSTEMML-515
             Project: SystemML
          Issue Type: Improvement
            Reporter: Mike Dusenberry


The {{rand(...)}} function has a {{sparsity}} parameter that allows one to specify the desired sparsity of the generated matrix as in
{code}
X = rand(rows=10, cols=20, min=0, max=1, pdf=”uniform”, sparsity=0.2)
{code}.

Currently, the {{sparsity}} parameter only accepts {{Literal}} inputs, i.e. hard-coded double values, or variables that are themselves hard-coded double values.  It would be better to allow an expression that evaluates to a double value, such as the following, simple, contrived example:
{code}
s = log(0.2)
X = rand(rows=10, cols=20, min=0, max=1, pdf=”uniform”, sparsity=s)
{code}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)