Trait

epic.framework

Model

Related Doc: package framework

Permalink

trait Model[Datum] extends SerializableLogging

A Model represents a class for turning weight vectors into epic.framework.Inferences. It's main job is to hook up with a epic.framework.ModelObjective and mediate computation of ExpectedCounts and conversion to the objective that's needed for optimization.

Datum

the kind of

Self Type
Model[Datum]
Linear Supertypes
SerializableLogging, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Model
  2. SerializableLogging
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type ExpectedCounts >: Null <: framework.ExpectedCounts[ExpectedCounts]

    Permalink
  2. abstract type Inference <: framework.Inference[Datum] { ... /* 2 definitions in type refinement */ }

    Permalink
  3. abstract type Marginal <: framework.Marginal

    Permalink
  4. abstract type Scorer

    Permalink

Abstract Value Members

  1. abstract def accumulateCounts(inf: Inference, s: Scorer, d: Datum, m: Marginal, accum: ExpectedCounts, scale: Double): Unit

    Permalink
  2. abstract def emptyCounts: ExpectedCounts

    Permalink
  3. abstract def expectedCountsToObjective(ecounts: ExpectedCounts): (Double, DenseVector[Double])

    Permalink
  4. abstract def featureIndex: Index[Feature]

    Permalink

    Models have features, and this defines the mapping from indices in the weight vector to features.

  5. abstract def inferenceFromWeights(weights: DenseVector[Double]): Inference

    Permalink
  6. abstract def initialValueForFeature(f: Feature): Double

    Permalink

Concrete 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. final def accumulateCounts(inf: Inference, d: Datum, accum: ExpectedCounts, scale: Double): Unit

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def cacheFeatureWeights(weights: DenseVector[Double], suffix: String = ""): Unit

    Permalink

    Caches the weights using the cache broker.

  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def expectedCounts(inf: Inference, d: Datum, scale: Double = 1.0): ExpectedCounts

    Permalink
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def logger: LazyLogger

    Permalink
    Attributes
    protected
    Definition Classes
    SerializableLogging
  15. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def numFeatures: Int

    Permalink
  19. def readCachedFeatureWeights(suffix: String = ""): Option[DenseVector[Double]]

    Permalink

    just saves feature weights to disk as a serialized counter.

    just saves feature weights to disk as a serialized counter. The file is prefix.ser.gz

  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def weightsCacheName: String

    Permalink
    Attributes
    protected

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from SerializableLogging

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped