case class OutputEmbeddingTransform[FV](numOutputs: Int, outputDim: Int, innerTransform: Transform[FV, DenseVector[Double]], coarsenerForInitialization: Option[(Int) ⇒ Int] = None) extends OutputTransform[FV, DenseVector[Double]] with Product with Serializable

Output embedding technique described in section 6 of http://www.eecs.berkeley.edu/~gdurrett/papers/durrett-klein-acl2015.pdf Basically learns a dictionary for the output as well as an affine transformation in order to produce the vector that gets combined with the input in the final bilinear product.

Linear Supertypes
Product, Equals, OutputTransform[FV, DenseVector[Double]], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OutputEmbeddingTransform
  2. Product
  3. Equals
  4. OutputTransform
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OutputEmbeddingTransform(numOutputs: Int, outputDim: Int, innerTransform: Transform[FV, DenseVector[Double]], coarsenerForInitialization: Option[(Int) ⇒ Int] = None)

Type Members

  1. case class OutputLayer (embeddings: DenseMatrix[Double], bias: DenseVector[Double], innerLayer: Layer) extends OutputTransform.OutputLayer[FV, DenseVector[Double]] with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clipEmbeddingNorms(weights: DenseVector[Double]): Unit
  6. def clipHiddenWeightVectors(weights: DenseVector[Double], norm: Double, outputLayer: Boolean): Unit
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val coarsenerForInitialization: Option[(Int) ⇒ Int]
  9. def displayEmbeddingNorms(weights: DenseVector[Double]): Unit
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def extractLayer(dv: DenseVector[Double], forTrain: Boolean): OutputLayer
    Definition Classes
    OutputTransform
  12. def extractLayerAndPenultimateLayer(weights: DenseVector[Double], forTrain: Boolean): (OutputLayer, Layer)
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  15. def getInterestingWeightIndicesForGradientCheck(offset: Int): Seq[Int]
  16. val index: SegmentedIndex[Feature, Index[Feature]]
  17. def initialWeightVector(initWeightsScale: Double, rng: Random, outputLayer: Boolean, spec: String): DenseVector[Double]
  18. val innerTransform: Transform[FV, DenseVector[Double]]
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  23. val numOutputs: Int
  24. val outputDim: Int
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from OutputTransform[FV, DenseVector[Double]]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped