Package

io.radanalytics.silex.sample

split

Permalink

package split

Visibility
  1. Public
  2. All

Type Members

  1. class SplitSampleRDDFunctions[T] extends Serializable

    Permalink

    Enhances RDDs with methods for split-sampling

    Enhances RDDs with methods for split-sampling

    T

    The row type of the RDD

    // import conversions to enhance RDDs with split sampling
    import 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))

Value Members

  1. object SplitSampleRDDFunctions extends Serializable

    Permalink

    Definitions used by SplitSampleRDDFunctions instances

  2. object implicits

    Permalink

    Implicit conversions to enhance RDDs with split sampling methods

Ungrouped