Skip to content

Instantly share code, notes, and snippets.

@ajayborra
Created November 5, 2018 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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