Last active
October 29, 2016 00:17
-
-
Save myui/5a31738ea9d7dff3cea6d43fbb6d3ec5 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
val trainDf = | |
spark.read.format("libsvm”).load(“a9a.train") | |
trainDf.train_logregr($"feature", $"label") | |
.groupby("feature") | |
.agg("weight"->"avg") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment