hivemall-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myui <...@git.apache.org>
Subject [GitHub] incubator-hivemall issue #46: [HIVEMALL-72] Fix corner-case rescale UDF beha...
Date Thu, 16 Feb 2017 07:20:37 GMT
Github user myui commented on the issue:

    https://github.com/apache/incubator-hivemall/pull/46
  
    @wangyum Are you agree with the following new behavior of [rescale(value,min,max)](https://en.wikipedia.org/wiki/Feature_scaling#Rescaling)?
    
    ```
    -- new
    select rescale(4.2,1.0,3.0),rescale(-0.3, 1.0, 3.0);
    > 1.0 0.0
    
    -- old
    select rescale(4.2,1.0,3.0),rescale(-0.3, 1.0, 3.0);
    > 1.5999999	-0.65
    ```
    
    Throwing an exception if value is out of range but exact min/max is sometimes unknown
beforehand.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message