com.eharmony.aloha.dataset.vw.multilabel

VwMultilabelRowCreator

object VwMultilabelRowCreator extends Rand with Serializable

Linear Supertypes
Serializable, Serializable, Rand, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. VwMultilabelRowCreator
  2. Serializable
  3. Serializable
  4. Rand
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Index = Int

    Definition Classes
    Rand
  2. final class Producer[A, K] extends PositiveLabelsFunction[A, K] with RowCreatorProducer[A, Array[String], VwMultilabelRowCreator[A, K]] with RowCreatorProducerName with VwCovariateProducer[A] with DvProducer with SparseCovariateProducer with CompilerFailureMessages

    A producer that can produce a VwMultilabelRowCreator.

  3. type Seed = Long

    Definition Classes
    Rand

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. def initSeedScramble(seed: Seed): Seed

    Perform the initial scramble.

    Perform the initial scramble. This should be called once on the initial seed prior to the first call to sampleCombination.

    seed

    an initial seed

    returns

    a more scrambled seed.

    Attributes
    protected
    Definition Classes
    Rand
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. def sampleCombination(n: Int, k: Int, seed: Seed): (Array[Index], Seed)

    Sample a k-combination from a population of n.

    Sample a k-combination from a population of n.

    This algorithm uses a linear congruential pseudorandom number generator (see Knuth) to perform reservoir sampling via "Algorithm R".

    It is ~ O(n).

    If nk, then return 0, ..., n - 1; otherwise, if k < n, the returned array have length k with values between 0 and n - 1 (inclusive) but it is NOT guaranteed to be sorted.

    NOTE: This is a pure function. It produces the same results as if java.util.Random was used to perform reservoir sampling but since it doesn't carry state, this can be trivially operated in parallel with no locking or CAS loop overhead. The consequence is that the seed must be provided on every call and a new seed will be returned as part of the output.

    To get this function to act like java.util.Random, the first time it is called, the seed should be produce by running the desired seed through initSeedScramble. For instance:

    val (kComb1, newSeed1) = sampleCombination(4, 2, initSeedScramble(0))
    val (kComb2, newSeed2) = sampleCombination(4, 2, newSeed1)

    For more information, see:

    n

    population size

    k

    combination size

    seed

    the seed to use for random selection

    returns

    a tuple 2 containing the array of 0-based indices representing the k-combination and a new random seed.

    Attributes
    protected
    Definition Classes
    Rand
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Rand

Inherited from AnyRef

Inherited from Any

Ungrouped