Class

org.mitre.jcarafe.crf

NeuralDenseCrfWorker

Related Doc: package crf

Permalink

class NeuralDenseCrfWorker extends NeuralDenseCrf with DenseWorker

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NeuralDenseCrfWorker
  2. DenseWorker
  3. NeuralDenseCrf
  4. NeuralStochasticCrfScoring
  5. DenseCrf
  6. Crf
  7. PotentialScoring
  8. Trainable
  9. Serializable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NeuralDenseCrfWorker(lambdas: Array[Double], nls: Int, nfs: Int, segSize: Int, gPrior: Double, nNfs: Int, nGates: Int, opts: Options)

    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. val activations: Array[Array[Double]]

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def computeGateActivations(lambdas: Array[Double], acts: Array[Double], wActs: Array[Double], numFs: Int, gateIdx: Int, nls: Int, nGates: Int, nNfs: Int, inst_features: Array[Array[Feature]]): Unit

    Permalink
    Definition Classes
    NeuralStochasticCrfScoring
  14. def computeScores(inst_features: Array[Array[Feature]], takeExp: Boolean): Unit

    Permalink
    Definition Classes
    NeuralDenseCrfCrf
  15. def computeScores(ri: Matrix, mi: Tensor, lambdas: Array[Double], acts: Array[Double], wActs: Array[Double], numFs: Int, gateIdx: Int, nls: Int, nGates: Int, nNfs: Int, inst_features: Array[Array[Feature]], takeExp: Boolean): Unit

    Permalink
    Definition Classes
    NeuralStochasticCrfScoring
  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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    NeuralDenseCrfDenseCrfCrf
  24. val gPrior: Double

    Permalink

    The Gaussian prior variance used as a regularizer

    The Gaussian prior variance used as a regularizer

    Definition Classes
    Crf
  25. val gateWeightIdx: Int

    Permalink
    Definition Classes
    NeuralDenseCrf
  26. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    DenseCrfCrfTrainable
  30. def getLambdas: Array[Double]

    Permalink
    Definition Classes
    Trainable
  31. def gradOfSeq(iseq: IndexedSeq[AbstractInstance]): Double

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

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

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

    Permalink
    Definition Classes
    NeuralDenseCrfCrfTrainable
  35. 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
  36. final def isInstanceOf[T0]: Boolean

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

    Permalink

    Parameter (lambda) vector

    Parameter (lambda) vector

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

    Permalink
    Definition Classes
    PotentialScoring
  39. 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
  40. val nGates: Int

    Permalink

    Number of neural gates per label (for NeuralCrf)

    Number of neural gates per label (for NeuralCrf)

    Definition Classes
    Crf
  41. val nNfs: Int

    Permalink

    Number of neural gate input features (for NeuralCrf)

    Number of neural gate input features (for NeuralCrf)

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

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

    Permalink

    Number of features

    Number of features

    Definition Classes
    Crf
  45. val nls: Int

    Permalink

    Number of labels/states

    Number of labels/states

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

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

    Permalink
    Definition Classes
    AnyRef
  48. val numInputFeatures: Int

    Permalink
    Definition Classes
    NeuralDenseCrf
  49. val numParams: Int

    Permalink
    Definition Classes
    CrfTrainable
  50. def regularize(): Double

    Permalink
    Definition Classes
    DenseCrf
  51. def reset(all: Boolean, slen: Int): Unit

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

    Permalink
    Definition Classes
    Crf
  53. 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
  54. 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
  55. 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
  56. final def setMatrix(m: Matrix, v: Double = 0.0): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  61. def train(a: AccessSeq[AbstractInstance], x: Int, modelIterFn: Option[(CoreModel, Int) ⇒ Unit] = None): Nothing

    Permalink
    Definition Classes
    DenseWorkerCrfTrainable
  62. def train(a: AccessSeq[AbstractInstance]): Nothing

    Permalink
    Definition Classes
    DenseWorkerCrf
  63. def vecSum(vec: Array[Double]): Double

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. val weightedActivationPartials: Array[Double]

    Permalink
    Definition Classes
    NeuralDenseCrf

Inherited from DenseWorker

Inherited from NeuralDenseCrf

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