You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hivemall.apache.org by "Makoto Yui (Jira)" <ji...@apache.org> on 2021/03/29 07:44:00 UTC

[jira] [Closed] (HIVEMALL-301) Implement tfidf UDF and remove macros

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

Makoto Yui closed HIVEMALL-301.
-------------------------------
    Resolution: Fixed

> Implement tfidf UDF and remove macros
> -------------------------------------
>
>                 Key: HIVEMALL-301
>                 URL: https://issues.apache.org/jira/browse/HIVEMALL-301
>             Project: Hivemall
>          Issue Type: Improvement
>            Reporter: Makoto Yui
>            Assignee: Makoto Yui
>            Priority: Minor
>             Fix For: 0.6.2
>
>
> Currently, tdidf function is implemented as a macro.
> {code:java}
> create temporary macro tfidf(tf FLOAT, df_t DOUBLE, n_docs DOUBLE)
> tf * (log(10, n_docs / max2(1,df_t)) + 1.0);
> {code}
> Replace the implementation with UDF.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)