You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Niketan Pansare (JIRA)" <ji...@apache.org> on 2017/01/19 20:09:26 UTC
[jira] [Closed] (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:all-tabpanel ]
Niketan Pansare closed SYSTEMML-515.
------------------------------------
Resolution: Fixed
Fix Version/s: SystemML 1.0
Fixed with the commit https://github.com/apache/incubator-systemml/commit/42ebc9620e62fc7458c2d7177439e61569b89b9e
> '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
> Fix For: SystemML 1.0
>
>
> 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)