systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glenn Weidner (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SYSTEMML-1659) New rewrite eliminate unnecessary aggregates
Date Sat, 09 Sep 2017 01:33:00 GMT

     [ https://issues.apache.org/jira/browse/SYSTEMML-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Glenn Weidner updated SYSTEMML-1659:
------------------------------------
    Fix Version/s:     (was: SystemML 1.0)
                   SystemML 0.15

> New rewrite eliminate unnecessary aggregates
> --------------------------------------------
>
>                 Key: SYSTEMML-1659
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-1659
>             Project: SystemML
>          Issue Type: Sub-task
>          Components: Compiler
>            Reporter: Matthias Boehm
>            Assignee: Matthias Boehm
>             Fix For: SystemML 0.15
>
>
> There are some example scripts which use unnecessary aggregations for convenience of
a consistent specification - hence, we should automatically eliminate these unnecessary aggregates,
via a simple static rewrite. For example, in below script, we should remove the unnecessary
rowSums, but the same applies to min-min, max-max, sum_sq-sum.
> {code}
>  # nn lib - cross_entropy_loss::forward (returns only loss)
>  N = nrow(y)
>  eps = 1e-10  # numerical stability to avoid log(0)
>  losses = rowSums(-y * log(pred+eps))
>  loss = sum(losses) / N
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message