nak.classify

LinearClassifier

class LinearClassifier[L, TW, TL, TF] extends Classifier[L, TF] with Serializable

A LinearClassifier is a multi-class classifier with decision function: \hat y_i = \arg\max_y w_y^T x_i + b_y

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

Instance Constructors

  1. new LinearClassifier(featureWeights: TW, intercepts: TL)(implicit viewT2: <:<[TW, NumericOps[TW]], vspace: MutableTensorField[TL, L, Double], mulTensors: breeze.linalg.operators.OpMulMatrix.Impl2[TW, TF, TL])

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. def andThen[A](g: (L) ⇒ A): (TF) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(o: TF): L

    Return the most likely label

    Return the most likely label

    Definition Classes
    Classifier → Function1
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def classify(o: TF): L

    Return the most likely label

    Return the most likely label

    Definition Classes
    Classifier
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def compose[A](g: (A) ⇒ TF): (A) ⇒ L

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. val featureWeights: TW

  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 hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. val intercepts: TL

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def map[M](f: (L) ⇒ M): Classifier[M, TF]

    Transforms output labels L=>M.

    Transforms output labels L=>M. if f(x) is not one-to-one then the max of score from the L's are used.

    Definition Classes
    Classifier
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. def scores(o: TF): Counter[L, Double]

    For the observation, return the score for each label that has a nonzero score.

    For the observation, return the score for each label that has a nonzero score.

    Definition Classes
    LinearClassifierClassifier
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  25. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Classifier[L, TF]

Inherited from (TF) ⇒ L

Inherited from AnyRef

Inherited from Any

Ungrouped