Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val fractions = Map(0 -> 0.7, 1 -> 0.3)
- val newSample = Df.sampleBy("label",fractions,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement