[
https://issues.apache.org/jira/browse/SYSTEMML-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15813480#comment-15813480
]
Mike Dusenberry commented on SYSTEMML-515:
------------------------------------------
cc [~niketanpansare], [~mboehm7], [~deron] We should fix this so that we can
improve the performance of `dropout`.
> '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)