Object

com.enriquegrodrigo.spark.crowd.methods

Glad

Related Doc: package methods

Permalink

object Glad

Provides functions for transforming an annotation dataset into a standard label dataset using the Glad algorithm.

This algorithm only works with types.BinaryAnnotation datasets.

The algorithm returns a types.GladModel, with information about the class true label estimation, the annotator precision, the instances difficulty and the log-likilihood of the model.

Example:
  1. import com.enriquegrodrigo.spark.crowd.methods.Glad
    import com.enriquegrodrigo.spark.crowd.types._
    sc.setCheckpointDir("checkpoint")
    val annFile = "data/binary-ann.parquet"
    val annData = spark.read.parquet(annFile).as[BinaryAnnotation]
    //Applying the learning algorithm
    val mode = Glad(annData)
    //Get MulticlassLabel with the class predictions
    val pred = mode.getMu().as[BinarySoftLabel]
    //Annotator precision matrices
    val annprec = mode.getAnnotatorPrecision()
    //Annotator precision matrices
    val annprec = mode.getInstanceDifficulty()
    //Annotator likelihood
    val like = mode.getLogLikelihood()
Version

0.1.5

See also

Whitehill, Jacob, et al. "Whose vote should count more: Optimal integration of labels from labelers of unknown expertise." Advances in neural information processing systems. 2009.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Glad
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(dataset: Dataset[BinaryAnnotation], eMIters: Int = 5, eMThreshold: Double = 0.1, gradIters: Int = 30, gradThreshold: Double = 0.5, gradLearningRate: Double = 0.01, alphaPrior: Double = 1, betaPrior: Double = 10): GladModel

    Permalink

    Apply the Glad Algorithm.

    Apply the Glad Algorithm.

    dataset

    The dataset (spark Dataset of type types.BinaryAnnotation over which the algorithm will execute.

    eMIters

    Number of iterations for the EM algorithm

    eMThreshold

    LogLikelihood variability threshold for the EM algorithm

    gradIters

    Maximum number of iterations for the GradientDescent algorithm

    gradThreshold

    Threshold for the log likelihood variability for the gradient descent algorithm

    gradLearningRate

    Learning rate for the gradient descent algorithm

    alphaPrior

    First value for all alpha parameters

    betaPrior

    First value for all beta parameters

    Version

    0.1.5

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped