Created
March 15, 2016 13:20
-
-
Save myui/b8d4048e0f1a7ba9d222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT OVERWRITE TABLE prediction | |
SELECT | |
id, | |
EXP(predicted)-1 as predicted | |
FROM( | |
SELECT | |
id, | |
avg(predicted) AS predicted | |
FROM( | |
SELECT | |
t.id, | |
tree_predict(p.model_id, p.model_type, p.pred_model, t.features, false) as predicted | |
FROM | |
model p | |
LEFT OUTER JOIN testing3 t | |
) t1 | |
group by | |
id | |
) t2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment