kr.ac.kaist.ir.deep.wordvec

StringToVectorType

class StringToVectorType extends StringType[ScalarMatrix]

Input Operation : String as Input & ScalarMatrix as Otput (Spark ONLY)

Example:
  1. var make = new StringToVectorType(model = wordModel, error = CrossEntropyErr)
        var out = make onewayTrip (net, in)
Linear Supertypes
StringType[ScalarMatrix], ManipulationType[String, ScalarMatrix], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StringToVectorType
  2. StringType
  3. ManipulationType
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringToVectorType(model: Broadcast[WordModel], error: Objective)

    model

    Broadcast of WordEmbedding model that contains all meaningful words.

    error

    An objective function (Default: kr.ac.kaist.ir.deep.fn.SquaredErr)

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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val corrupt: Corruption

    Corruption function

    Corruption function

    Definition Classes
    StringTypeManipulationType
  7. def corrupted(x: String): String

    Corrupt input : No corruption for string.

    Corrupt input : No corruption for string.

    x

    input to be corrupted

    returns

    corrupted input

    Definition Classes
    StringTypeManipulationType
  8. def different(x: ScalarMatrix, y: ScalarMatrix): Boolean

    Check whether given two are same or not.

    Check whether given two are same or not.

    x

    Out-type object

    y

    Out-type object

    returns

    True if they are different.

    Definition Classes
    ManipulationType
  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. val error: Objective

    An objective function (Default: kr.ac.kaist.ir.deep.fn.SquaredErr)

    An objective function (Default: kr.ac.kaist.ir.deep.fn.SquaredErr)

    Definition Classes
    StringToVectorTypeManipulationType
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def lossOf(net: Network)(pair: (String, ScalarMatrix)): Scalar

    Apply given input and compute the error

    Apply given input and compute the error

    net

    A network that gets input

    pair

    (Input, Real output) for error computation.

    returns

    error of this network

    Definition Classes
    StringToVectorTypeManipulationType
  17. val model: Broadcast[WordModel]

    Broadcast of WordEmbedding model that contains all meaningful words.

    Broadcast of WordEmbedding model that contains all meaningful words.

    Attributes
    protected
    Definition Classes
    StringToVectorTypeStringType
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def onewayTrip(net: Network, x: String): ScalarMatrix

    Apply given single input as one-way forward trip.

    Apply given single input as one-way forward trip.

    net

    A network that gets input

    x

    input to be computed

    returns

    output of the network.

    Definition Classes
    StringTypeManipulationType
  22. def roundTrip(net: Network, in: String, real: ScalarMatrix): Unit

    Apply & Back-prop given single input

    Apply & Back-prop given single input

    net

    A network that gets input

    in

    Input for error computation.

    real

    Real output for error computation.

    Definition Classes
    StringToVectorTypeManipulationType
  23. def stringOf(net: Network, pair: (String, ScalarMatrix)): String

    Make validation output

    Make validation output

    net

    A network that gets input

    pair

    (Input, Real output) pair for computation

    returns

    input as string

    Definition Classes
    StringToVectorTypeManipulationType
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  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 StringType[ScalarMatrix]

Inherited from ManipulationType[String, ScalarMatrix]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped