Object

com.enriquegrodrigo.spark.crowd.methods

IBCC

Related Doc: package methods

Permalink

object IBCC

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

This algorithm only works with multiclass target variables (Datasets of type types.MulticlassAnnotation

The algorithm returns a IBCC.IBCCModel, with information about the class true label estimation, the annotators precision, and the class prior estimation

Example:
  1. import com.enriquegrodrigo.spark.crowd.methods.IBCC
    import com.enriquegrodrigo.spark.crowd.types._
    sc.setCheckpointDir("checkpoint")
    val annFile = "data/binary-ann.parquet"
    val annData = spark.read.parquet(annFile)
    //Applying the learning algorithm
    val mode = IBCC(annData)
    //Get MulticlassLabel with the class predictions
    val pred = mode.getMu()
    //Annotator precision matrices
    val annprec = mode.getAnnotatorPrecision()
    //Annotator precision matrices
    val classPrior = mode.getClassPrior()
Version

0.2.0

See also

H.-C. Kim and Z. Ghahramani. Bayesian classifier combination. In AISTATS, pages 619–627, 2012.

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

Type Members

  1. class IBCCModel extends AnyRef

    Permalink

    Model returned by the learning algorithm.

    Model returned by the learning algorithm.

    Version

    0.2.0

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[MulticlassAnnotation], eMIters: Int = 5, eMThreshold: Double = 0.1, annDirich: Option[Map[String, Array[Array[Double]]]] = None, classDirich: Option[Array[Double]] = None): IBCCModel

    Permalink

    Apply the IBCC Algorithm.

    Apply the IBCC Algorithm.

    dataset

    The dataset (spark dataset of MulticlassAnnotation

    eMIters

    Number of iterations for the EM algorithm

    eMThreshold

    LogLikelihood variability threshold for the EM algorithm

    annDirich

    Dirichlech prior for annotators. By default, a uniform prior.

    classDirich

    Dirichlech prior for classes. By default, a uniform prior.

    Version

    0.2.0

  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