Class

org.mitre.jcarafe.maxent

SparseMaxEnt

Related Doc: package maxent

Permalink

abstract class SparseMaxEnt extends StochasticCrf with MaxEntCore with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SparseMaxEnt
  2. MaxEntCore
  3. StochasticCrf
  4. SparseTrainable
  5. Crf
  6. PotentialScoring
  7. Trainable
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparseMaxEnt(nls: Int, nfs: Int, opts: Options)

    Permalink

Type Members

  1. class DoubleCell extends AnyRef

    Permalink
    Definition Classes
    SparseTrainable
  2. type Matrix = Array[Array[Double]]

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

    Permalink
    Definition Classes
    PotentialScoring

Abstract Value Members

  1. abstract def train(seqAccessor: AccessSeq[AbstractInstance], maxIters: Int, mi: Option[(CoreModel, Int) ⇒ Unit]): CoreModel

    Permalink
    Definition Classes
    CrfTrainable

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. val C: Double

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  5. 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
  6. 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
  7. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  11. val batchSize: Int

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  12. 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
  13. 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
  14. def clone(): AnyRef

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

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

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

    Permalink

    Current alpha values used for Forward-Backward computation

    Current alpha values used for Forward-Backward computation

    Definition Classes
    Crf
  18. var curNls: Int

    Permalink
    Definition Classes
    Crf
  19. var curPos: Int

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  20. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. val eta: Double

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  23. lazy val etas: Array[Double]

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  24. def finalize(): Unit

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

    Permalink
    Attributes
    protected
    Definition Classes
    StochasticCrfCrf
  26. val gPrior: Double

    Permalink

    The Gaussian prior variance used as a regularizer

    The Gaussian prior variance used as a regularizer

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

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

    Permalink
    Definition Classes
    CrfTrainable
  29. def getGradient(l2: Boolean, seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
  30. def getGradient(seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
    Definition Classes
    SparseMaxEntStochasticCrfCrfTrainable
  31. def getLambdas: Array[Double]

    Permalink
    Definition Classes
    Trainable
  32. def gradNorm: Double

    Permalink
    Definition Classes
    StochasticCrf
  33. def gradOfElement(el: AbstractInstance): Double

    Permalink
  34. val gradient: HashMap[Int, DoubleCell]

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  35. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  36. val initialLearningRate: Double

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  37. def initialize(): Unit

    Permalink
    Definition Classes
    CrfTrainable
  38. 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
  39. final def isInstanceOf[T0]: Boolean

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

    Permalink

    Parameter (lambda) vector

    Parameter (lambda) vector

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

    Permalink
    Definition Classes
    PotentialScoring
  42. val maxEpochs: Int

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  43. 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
  44. val momentum: Double

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  45. val nGates: Int

    Permalink

    Number of neural gates per label (for NeuralCrf)

    Number of neural gates per label (for NeuralCrf)

    Definition Classes
    Crf
  46. val nNfs: Int

    Permalink

    Number of neural gate input features (for NeuralCrf)

    Number of neural gate input features (for NeuralCrf)

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

    Permalink
    Definition Classes
    AnyRef
  48. 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
  49. val nfs: Int

    Permalink

    Number of features

    Number of features

    Definition Classes
    Crf
  50. val nls: Int

    Permalink

    Number of labels/states

    Number of labels/states

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

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

    Permalink
    Definition Classes
    AnyRef
  53. var numGradIssues: Int

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  54. val numParams: Int

    Permalink
    Definition Classes
    CrfTrainable
  55. val opts: Options

    Permalink

    General program parameters/options passed in to trainer

    General program parameters/options passed in to trainer

    Definition Classes
    StochasticCrf
  56. val pAlpha: Double

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  57. val periodSize: Int

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  58. val predNFS: Int

    Permalink
  59. def printGradient: Unit

    Permalink
    Definition Classes
    StochasticCrf
  60. val quiet: Boolean

    Permalink
    Definition Classes
    StochasticCrfSparseTrainable
  61. def reset(l: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    StochasticCrf
  62. def reset(all: Boolean, slen: Int): Unit

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

    Permalink
    Definition Classes
    StochasticCrfCrf
  64. 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
  65. 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
  66. 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
  67. final def setMatrix(m: Matrix, v: Double = 0.0): Unit

    Permalink
    Definition Classes
    PotentialScoring
  68. def setNewEtas(es: Array[Double]): Unit

    Permalink
    Definition Classes
    StochasticCrf
  69. def setNewParams(ls: Array[Double]): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  74. def train(seqAccessor: AccessSeq[AbstractInstance]): CoreModel

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

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  76. final def wait(): Unit

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

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

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

Inherited from MaxEntCore

Inherited from StochasticCrf

Inherited from Crf

Inherited from PotentialScoring

Inherited from Trainable[AbstractInstance]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped