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/10/24 21:28:58 UTC

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

    [ https://issues.apache.org/jira/browse/SYSTEMML-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15603280#comment-15603280 ] 

Mike Dusenberry commented on SYSTEMML-515:
------------------------------------------

cc [~nakul02]

> 'Sparsity' Parameter For `rand` Statement Should Allow An 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)