epic.framework

Inference

trait Inference[Datum] extends Serializable

Inference is the core interface in Epic. It produces instances of epic.framework.Marginal which are then turned into epic.framework.ExpectedCounts.

There are two kinds of marginals produced by an inference object: gold and guess. Gold marginals are the marginals conditioned on the output label/structure itself (e.g. the parse tree). Guess marginals are the marginals conditioned on only the input data (e.g. the words in the sentence)

In structured prediction, the objective usually takes the form: \minimize \sum_{all structures} score(structure) - \sum_{all structures compatible with output label} score(structure)

with the derivative being: E_{all structures} features(structure) - E_{all structures compatible with output label} features(structure)

replacing sum with max for max marginals.

Datum

the kind of thing to do inference on

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

Type Members

  1. abstract type Marginal <: framework.Marginal

  2. abstract type Scorer

Abstract Value Members

  1. abstract def goldMarginal(scorer: Scorer, v: Datum): Marginal

    Produces the "gold marginal" which is the marginal conditioned on the output label/structure itself.

    Produces the "gold marginal" which is the marginal conditioned on the output label/structure itself.

    v

    the example

    returns

    gold marginal

  2. abstract def marginal(scorer: Scorer, v: Datum): Marginal

    Produces the "guess marginal" which is the marginal conditioned on only the input data

    Produces the "guess marginal" which is the marginal conditioned on only the input data

    v

    the example

    returns

    gold marginal

  3. abstract def scorer(v: Datum): Scorer

Concrete 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. def forTesting: Inference[Datum]

  12. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  15. def marginal(v: Datum): Marginal

  16. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  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 AnyRef

Inherited from Any

Ungrouped