Created
October 29, 2016 00:27
-
-
Save myui/0c67df3037039aa274b239ea2e415007 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
context = HiveContext(sc) | |
context.sql(" | |
SELECT | |
feature, avg(weight) as weight | |
FROM ( | |
SELECT train_logregr(features, label) | |
as (feature, weight) | |
FROM trainTable | |
) model | |
GROUP BY feature | |
") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment