systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Boehm (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (SYSTEMML-1659) New rewrite eliminate unnecessary aggregates
Date Sat, 03 Jun 2017 21:50:04 GMT

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

Matthias Boehm closed SYSTEMML-1659.
------------------------------------

> 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 1.0
>
>
> 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.3.15#6346)

Mime
View raw message