case class CachingLookupAndAffineTransformDense[FV](numOutputs: Int, numInputs: Int, word2vecIndexed: Word2VecIndexed[String], includeBias: Boolean = true) extends Transform[Array[Int], DenseVector[Double]] with Product with Serializable
Used at the input layer to cache lookups and the result of applying the affine transform at the first layer of the network. This saves computation across repeated invocations of the neural network in the sentence.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CachingLookupAndAffineTransformDense
- Product
- Equals
- Transform
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new CachingLookupAndAffineTransformDense(numOutputs: Int, numInputs: Int, word2vecIndexed: Word2VecIndexed[String], includeBias: Boolean = true)
Type Members
- case class Layer (weights: DenseMatrix[Double], bias: DenseVector[Double]) extends Transform.Layer[Array[Int], DenseVector[Double]] with Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clipHiddenWeightVectors(weights: DenseVector[Double], norm: Double, outputLayer: Boolean): Unit
- Definition Classes
- CachingLookupAndAffineTransformDense → Transform
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
extractLayer(weights: DenseVector[Double], forTrain: Boolean): Layer
- Definition Classes
- CachingLookupAndAffineTransformDense → Transform
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getInterestingWeightIndicesForGradientCheck(offset: Int): Seq[Int]
- Definition Classes
- CachingLookupAndAffineTransformDense → Transform
- val includeBias: Boolean
-
val
index: Index
- Definition Classes
- CachingLookupAndAffineTransformDense → Transform
-
def
initialWeightVector(initWeightsScale: Double, rng: Random, outputLayer: Boolean, spec: String): DenseVector[Double]
- Definition Classes
- CachingLookupAndAffineTransformDense → Transform
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val numInputs: Int
- val numOutputs: Int
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val word2vecIndexed: Word2VecIndexed[String]