GitHub user myui opened a pull request:
https://github.com/apache/incubator-hivemall/pull/102
[HIVEMALL-127][Improvement] Added tree_predict_v1 UDF for RandomForest
backward compatibility
## What changes were proposed in this pull request?
Added `tree_predict_v1` UDF for RandomForest backward compatibility
## What type of PR is it?
Improvement
## What is the Jira issue?
https://issues.apache.org/jira/browse/HIVEMALL-127
## How was this patch tested?
unit tests, manual tests
## How to use this feature?
```sql
set hivevar:classification=true;
create table predicted
as
SELECT
rowid,
rf_ensemble(predicted) as predicted
FROM (
SELECT
rowid,
tree_predict_v1(p.model_id, p.model_type, p.pred_model, t.features,
${classification}) as predicted
FROM
model p
LEFT OUTER JOIN -- CROSS JOIN
training t
) t1
group by
rowid;
```
## Checklist
- [x] Did you apply source code formatter, i.e., `mvn formatter:format`,
for your commit?
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/myui/incubator-hivemall HIVEMALL-127
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-hivemall/pull/102.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #102
----
commit 7f3ca6b301df2af94055e1024dc28b9c3b2d1a2f
Author: Makoto Yui <[email protected]>
Date: 2017-07-18T09:52:45Z
Added tree_predict_v1 UDF for RandomForest backward compatibility
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---