Skip to content

Instantly share code, notes, and snippets.

@ajayborra
Created November 5, 2018 20:00
Show Gist options
  • Save ajayborra/58622039788850d7d8dbd8940e795800 to your computer and use it in GitHub Desktop.
Save ajayborra/58622039788850d7d8dbd8940e795800 to your computer and use it in GitHub Desktop.
Train & Test Split
//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