Created
November 5, 2018 20:00
-
-
Save ajayborra/58622039788850d7d8dbd8940e795800 to your computer and use it in GitHub Desktop.
Train & Test Split
This file contains 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
//divide in test and train | |
val split = scaledFeatures.randomSplit(Array(.8, .2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment