// import conversions to enhance RDDs with split samplingimport io.radanalytics.silex.sample.split.implicits._
// obtain a sequence of 5 RDDs randomly split from RDD 'data', where each element// has probability 1/5 of being assigned to each output.val splits = data.splitSample(5)
// randomly split data so that the second output has twice the probability of receiving// a data element as the first, and the third output has three times the probability.val splitsW = data.weightedSplitSample(Seq(1.0, 2.0, 3.0))
Enhances RDDs with methods for split-sampling
The row type of the RDD