Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. val fractions = Map(0 -> 0.7, 1 -> 0.3)
  2. val newSample = Df.sampleBy("label",fractions,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement