nak.classify

LFMatrix

class LFMatrix[L, TF] extends NumericOps[LFMatrix[L, TF]] with Serializable

This stupidly named class is a Label-Feature Matrix, which is to say that it's a the weight matrix used by most of the classifier trainers. It's basically a matrix with one row per label, and the rows are some Tensor type (TF). TF is a mnemonic for Feature Tensor.

L

label type

TF

feature tensor type

Annotations
@SerialVersionUID( 1L )
Linear Supertypes
Serializable, Serializable, NumericOps[LFMatrix[L, TF]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LFMatrix
  2. Serializable
  3. Serializable
  4. NumericOps
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LFMatrix(emptyTF: ⇒ TF, labelIndex: Index[L])(implicit arg0: ClassTag[TF])

  2. new LFMatrix(data: Array[TF], emptyTF: ⇒ TF, labelIndex: Index[L])(implicit arg0: ClassTag[TF])

    data

    array of weights for each label

    emptyTF

    an empty weight vector, used for creating zeros dense vectors

    labelIndex

    label index

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def %[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpMod, That]): That

    Definition Classes
    NumericOps
  5. final def %=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpMod]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  6. final def &[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpAnd, That]): That

    Definition Classes
    NumericOps
  7. final def &=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpAnd]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  8. final def *[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpMulMatrix, That]): That

    Definition Classes
    NumericOps
  9. final def *=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpMulScalar]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  10. final def +[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpAdd, That]): That

    Definition Classes
    NumericOps
  11. final def +=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpAdd]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  12. final def -[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpSub, That]): That

    Definition Classes
    NumericOps
  13. final def -=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpSub]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  14. final def /[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpDiv, That]): That

    Definition Classes
    NumericOps
  15. final def /=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpDiv]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  16. final def :!=[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpNe, That]): That

    Definition Classes
    NumericOps
  17. final def :%[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpMod, That]): That

    Definition Classes
    NumericOps
  18. final def :%=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpMod]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  19. final def :&[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpAnd, That]): That

    Definition Classes
    NumericOps
  20. final def :&=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpAnd]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  21. final def :*[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpMulScalar, That]): That

    Definition Classes
    NumericOps
  22. final def :*=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpMulScalar]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  23. final def :+[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpAdd, That]): That

    Definition Classes
    NumericOps
  24. final def :+=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpAdd]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  25. final def :-[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpSub, That]): That

    Definition Classes
    NumericOps
  26. final def :-=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpSub]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  27. final def :/[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpDiv, That]): That

    Definition Classes
    NumericOps
  28. final def :/=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpDiv]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  29. final def :<[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpLT, That]): That

    Definition Classes
    NumericOps
  30. final def :<=[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpLTE, That]): That

    Definition Classes
    NumericOps
  31. final def :=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpSet]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  32. final def :==[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpEq, That]): That

    Definition Classes
    NumericOps
  33. final def :>[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpGT, That]): That

    Definition Classes
    NumericOps
  34. final def :>=[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpGTE, That]): That

    Definition Classes
    NumericOps
  35. final def :^[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpPow, That]): That

    Definition Classes
    NumericOps
  36. final def :^=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpPow]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  37. final def :^^[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpXor, That]): That

    Definition Classes
    NumericOps
  38. final def :^^=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpXor]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  39. final def :|[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpOr, That]): That

    Definition Classes
    NumericOps
  40. final def :|=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpOr]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  41. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  43. def \[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpSolveMatrixBy, That]): That

    Definition Classes
    NumericOps
  44. final def ^^[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpXor, That]): That

    Definition Classes
    NumericOps
  45. final def ^^=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpXor]): LFMatrix[L, TF]

    Definition Classes
    NumericOps
  46. def apply(label: Int): TF

  47. def apply(label: L): TF

  48. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  49. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. val data: Array[TF]

    array of weights for each label

  51. final def dot[TT >: LFMatrix[L, TF], B, BB >: B, That](b: B)(implicit op: BinaryOp[TT, BB, OpMulInner, That]): That

    Definition Classes
    NumericOps
  52. def empty: LFMatrix[L, TF]

  53. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  55. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  59. val labelIndex: Index[L]

    label index

  60. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  63. def numLabels: Int

  64. def repr: LFMatrix[L, TF]

    Definition Classes
    LFMatrix → NumericOps
  65. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  66. final def t[TT >: LFMatrix[L, TF], That, Slice1, Slice2, Result](a: Slice1, b: Slice2)(implicit op: CanTranspose[TT, That], canSlice: CanSlice2[That, Slice1, Slice2, Result]): Result

    Definition Classes
    NumericOps
  67. final def t[TT >: LFMatrix[L, TF], That](implicit op: CanTranspose[TT, That]): That

    Definition Classes
    NumericOps
  68. def toString(): String

    Definition Classes
    LFMatrix → AnyRef → Any
  69. final def unary_![TT >: LFMatrix[L, TF], That](implicit op: UnaryOp[TT, OpNot, That]): That

    Definition Classes
    NumericOps
  70. final def unary_-[TT >: LFMatrix[L, TF], That](implicit op: UnaryOp[TT, OpNeg, That]): That

    Definition Classes
    NumericOps
  71. def unindexed: UnindexedLFMatrix[L, TF]

  72. def update(label: Int, tf: TF): Unit

  73. def update(label: L, tf: TF): Unit

  74. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def |[TT >: LFMatrix[L, TF], B, That](b: B)(implicit op: BinaryOp[TT, B, OpOr, That]): That

    Definition Classes
    NumericOps
  78. final def |=[TT >: LFMatrix[L, TF], B](b: B)(implicit op: BinaryUpdateOp[TT, B, OpOr]): LFMatrix[L, TF]

    Definition Classes
    NumericOps

Inherited from Serializable

Inherited from Serializable

Inherited from NumericOps[LFMatrix[L, TF]]

Inherited from AnyRef

Inherited from Any

Ungrouped