Class

org.mitre.jcarafe.maxent

DenseParallelMaxEnt

Related Doc: package maxent

Permalink

class DenseParallelMaxEnt extends MaxEnt with ParCrf[DenseMaxEntWorker] with CondLogLikelihoodLearner[AbstractInstance]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DenseParallelMaxEnt
  2. ParCrf
  3. MaxEnt
  4. CondLogLikelihoodLearner
  5. CrfLearner
  6. DenseTrainable
  7. MaxEntCore
  8. DenseCrf
  9. Crf
  10. PotentialScoring
  11. Trainable
  12. Serializable
  13. Serializable
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DenseParallelMaxEnt(numPs: Int, nls: Int, nfs: Int, gPrior: Double)

    Permalink

Type Members

  1. type Matrix = Array[Array[Double]]

    Permalink
    Definition Classes
    PotentialScoring
  2. type Tensor = Array[Matrix]

    Permalink
    Definition Classes
    PotentialScoring

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. var adjustible: Boolean

    Permalink

    When set to true, the Crf will allow the state-space to be dynamically sized - i.e.

    When set to true, the Crf will allow the state-space to be dynamically sized - i.e. the number of states is dependent on each sequence

    Definition Classes
    Crf
  5. var alpha: Matrix

    Permalink

    Alpha values.

    Alpha values. Need values for each segment length for each label (in general, Semi-CRF case)

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

    Permalink
    Definition Classes
    Any
  7. def assign(v1: Array[Double], f: (Double) ⇒ Double): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  8. def assign1(v1: Array[Double], v2: Array[Double], f: (Double, Double) ⇒ Double): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  9. def backwardPass(iseq: Seq[AbstractInstance]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  10. var beta: Matrix

    Permalink

    Beta values.

    Beta values. Need values for each segment length for each label (in general, Semi-CRF case)

    Definition Classes
    Crf
  11. def classScoresNormalized(nls: Int, predNFS: Int, lambdas: Array[Double], sparseFeatures: Array[CompactFeature]): IndexedSeq[Double]

    Permalink

    Gets the normalized scores for each class outcome for a particular instance given the current parameters, lambdas, and the features associated with the instance, sparseFeatures

    Gets the normalized scores for each class outcome for a particular instance given the current parameters, lambdas, and the features associated with the instance, sparseFeatures

    Definition Classes
    MaxEntCore
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def computeScores(inst_features: Array[Array[Feature]], takeExp: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  14. final def computeScores(ri: Matrix, mi: Tensor, inst_features: Array[Array[Feature]], takeExp: Boolean, nls: Int, lambdas: Array[Double]): Unit

    Permalink
    Definition Classes
    PotentialScoring
  15. val curA: Array[Double]

    Permalink

    Current alpha values used for Forward-Backward computation

    Current alpha values used for Forward-Backward computation

    Definition Classes
    Crf
  16. var curNls: Int

    Permalink
    Definition Classes
    Crf
  17. implicit val ec: ExecutionContextExecutor

    Permalink
    Definition Classes
    ParCrf
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val featureExpectations: Array[Double]

    Permalink
    Definition Classes
    DenseCrf
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def forwardPass(iseq: IndexedSeq[AbstractInstance]): Double

    Permalink
    Attributes
    protected
    Definition Classes
    DenseCrfCrf
  23. val gPrior: Double

    Permalink

    The Gaussian prior variance used as a regularizer

    The Gaussian prior variance used as a regularizer

    Definition Classes
    Crf
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def getCoreModel(): CoreModel

    Permalink
    Definition Classes
    CrfTrainable
  26. def getGradient(seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
    Definition Classes
    DenseParallelMaxEntMaxEntDenseCrfCrfTrainable
  27. def getGradient(numProcesses: Int, seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    ParCrf
  28. def getGradient(l2: Boolean, seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
    Definition Classes
    MaxEntDenseCrf
  29. def getLambdas: Array[Double]

    Permalink
    Definition Classes
    Trainable
  30. def getWorker(lambdas: Array[Double], nls: Int, nfs: Int, ss: Int, gPrior: Double): DenseMaxEntWorker

    Permalink
    Definition Classes
    DenseParallelMaxEntParCrf
  31. def gradOfElement(el: AbstractInstance): Double

    Permalink
    Definition Classes
    MaxEnt
  32. def gradOfSeq(iseq: IndexedSeq[AbstractInstance]): Double

    Permalink
    Definition Classes
    DenseCrf
  33. val gradient: Array[Double]

    Permalink
    Definition Classes
    DenseCrf
  34. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  35. def initialize(): Unit

    Permalink
    Definition Classes
    CrfTrainable
  36. val invSigSqr: Double

    Permalink

    The value of the inverse square of the Gaussian prior

    The value of the inverse square of the Gaussian prior

    Definition Classes
    Crf
  37. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  38. val lambdas: Array[Double]

    Permalink

    Parameter (lambda) vector

    Parameter (lambda) vector

    Definition Classes
    CrfTrainable
  39. final def matrixMult(mat: Matrix, vec: Array[Double], rvec: Array[Double], alpha: Double, beta: Double, trans: Boolean): Unit

    Permalink
    Definition Classes
    PotentialScoring
  40. val mi: Tensor

    Permalink

    For each segment size, the mi matrix holds transition scores for adjacent labels

    For each segment size, the mi matrix holds transition scores for adjacent labels

    Definition Classes
    Crf
  41. val nGates: Int

    Permalink

    Number of neural gates per label (for NeuralCrf)

    Number of neural gates per label (for NeuralCrf)

    Definition Classes
    Crf
  42. val nNfs: Int

    Permalink

    Number of neural gate input features (for NeuralCrf)

    Number of neural gate input features (for NeuralCrf)

    Definition Classes
    Crf
  43. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. val newA: Array[Double]

    Permalink

    Alpha values at the next position used for Forward-Backward computation

    Alpha values at the next position used for Forward-Backward computation

    Definition Classes
    Crf
  45. val nfs: Int

    Permalink

    Number of features

    Number of features

    Definition Classes
    Crf
  46. val nls: Int

    Permalink

    Number of labels/states

    Number of labels/states

    Definition Classes
    Crf
  47. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  49. val numParams: Int

    Permalink
    Definition Classes
    CrfTrainable
  50. val predNFS: Int

    Permalink
    Definition Classes
    MaxEnt
  51. def print_zero_wt_feature_cnt(weights: Array[Double], num_features: Int): Unit

    Permalink
    Definition Classes
    CrfLearner
  52. def regularize(): Double

    Permalink
    Definition Classes
    MaxEntDenseCrf
  53. def reset(all: Boolean, slen: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  54. def resetParameters(): Unit

    Permalink
    Definition Classes
    Crf
  55. val ri: Matrix

    Permalink

    For each segment size (general case) the ri matrix holds state scores for each label

    For each segment size (general case) the ri matrix holds state scores for each label

    Definition Classes
    Crf
  56. var scale: Array[Double]

    Permalink

    An array of scaling coefficients to avoid underflow without having to do computations in log space.

    An array of scaling coefficients to avoid underflow without having to do computations in log space. See Manning and Schutze Chapter 9 for details (there in the context of HMMs)

    Definition Classes
    Crf
  57. val segSize: Int

    Permalink

    The size of segments.

    The size of segments. Sizes greater than 1 indicate the model is a semi-CRF

    Definition Classes
    Crf
  58. final def setMatrix(m: Matrix, v: Double = 0.0): Unit

    Permalink
    Definition Classes
    PotentialScoring
  59. final def setTensor(t: Tensor, v: Double = 0.0): Unit

    Permalink
    Definition Classes
    PotentialScoring
  60. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  61. val tmp: Array[Double]

    Permalink
    Definition Classes
    Crf
  62. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  63. def train(accessSeq: AccessSeq[AbstractInstance], max_iters: Int, modelIterFn: Option[(CoreModel, Int) ⇒ Unit] = None): CoreModel

    Permalink
    Definition Classes
    CondLogLikelihoodLearnerTrainable
  64. def train(seqAccessor: AccessSeq[AbstractInstance]): CoreModel

    Permalink
    Definition Classes
    Crf
  65. def vecSum(vec: Array[Double]): Double

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  66. var veryVerbose: Boolean

    Permalink
    Definition Classes
    CondLogLikelihoodLearner
  67. final def wait(): Unit

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

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

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

Inherited from ParCrf[DenseMaxEntWorker]

Inherited from MaxEnt

Inherited from CrfLearner

Inherited from MaxEntCore

Inherited from DenseCrf

Inherited from Crf

Inherited from PotentialScoring

Inherited from Trainable[AbstractInstance]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped