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
Github user myui commented on the issue:
https://github.com/apache/incubator-hivemall/pull/46
Oops.. the latter one is expected.
```sql
select rescale(4.2,1.0,3.0),rescale(-0.3, 1.0, 3.0);
> 3.0 1.0
select rescale(4.2,1.0,3.0),rescale(-0.3, 1.0, 3.0);
>
GitHub user myui opened a pull request:
https://github.com/apache/incubator-hivemall/pull/46
[HIVEMALL-72] Fix rescale UDF behavior to return range [0.0,1.0]
## What changes were proposed in this pull request?
Fix rescale UDF behavior to return range `[0.0,1.0]`.
[
https://issues.apache.org/jira/browse/HIVEMALL-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Makoto Yui closed HIVEMALL-71.
--
Resolution: Fixed
Assignee: Makoto Yui
> Handle null values in RescaleUDF.java
>
Github user myui commented on the issue:
https://github.com/apache/incubator-hivemall/pull/45
@wangyum Thanks. Merged with some modifications.
```sql
select rescale(v,min,max) from (
select cast(1.2 as float) as v, 1.0 as min, 10.0 as max
union all
Github user myui commented on the issue:
https://github.com/apache/incubator-hivemall/pull/44
@wangyum Merged. Thank you for your contribution!
---
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
Github user asfgit closed the pull request at:
https://github.com/apache/incubator-hivemall/pull/44
---
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