Uploaded image for project: 'Hivemall'
  1. Hivemall
  2. HIVEMALL-259

[BUG] feature_binning does not work properly under certain conditions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.5.2
    • Fix Version/s: 0.6.0
    • Labels:
      None

      Description

       

      feature_binning does not properly work in certain condition.

      It might be a bug in quantiles lookup by a different key type object at this line.

       

      WITH extracted as (
        select
          extract_feature(feature) as index,
          extract_weight(feature) as value
        from
          input l
          LATERAL VIEW explode(features) r as feature
      ),
      bins as (
         select
           map(index, build_bins(value, 5, true)) as quantiles -- 5 bins with auto bin shrinking
         from
           extracted
         group by
           index
      )
      select
        l.features as original,
        feature_binning(l.features, r.quantiles) as features
      from
        input l
        cross join bins r
      ;
      

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                myui Makoto Yui
                Reporter:
                myui Makoto Yui
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: