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 2017/02/21 10:33:44 UTC

[jira] [Created] (HIVEMALL-78) Support AUC BinaryClassificationMetrics

Makoto Yui created HIVEMALL-78:
----------------------------------

             Summary: Support AUC BinaryClassificationMetrics
                 Key: HIVEMALL-78
                 URL: https://issues.apache.org/jira/browse/HIVEMALL-78
             Project: Hivemall
          Issue Type: New Feature
            Reporter: Makoto Yui
            Assignee: Takuya Kitazawa
            Priority: Minor


http://www.citeulike.org/user/myui/article/12615084
https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/evaluation/BinaryClassificationMetrics.scala

{code:sql}
select
    auc(fp, tp) as area -- auc is UDAF, input is sorted by fp asc
  from (  
    select 
      fp, tp
    from
      data
    DISTRIBUTE BY 
      floor(fp / 0.2) -- 5 bins
    SORT BY 
      fp ASC
  ) t
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)