nak.core

LiblinearClassifier

trait LiblinearClassifier extends IndexedClassifier[String]

A classifier that wraps a liblinear model and conforms to the Nak API.

Linear Supertypes
IndexedClassifier[String], FeatureMap, LabelMap[String], Classifier, Serializable, Serializable, (Array[(Int, Double)]) ⇒ Array[Double], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LiblinearClassifier
  2. IndexedClassifier
  3. FeatureMap
  4. LabelMap
  5. Classifier
  6. Serializable
  7. Serializable
  8. Function1
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fmap: FeatureMap

  2. abstract val lmap: Map[String, Int]

  3. abstract val model: Model

Concrete 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 ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. def andThen[A](g: (Array[Double]) ⇒ A): (Array[(Int, Double)]) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(context: Array[(Int, Double)]): Array[Double]

    Implement the apply method of Classifier by transforming the tuples into Liblinear Features and then calling Linear.

    Implement the apply method of Classifier by transforming the tuples into Liblinear Features and then calling Linear.predictProbability.

    TODO: This should be made more general so that the SVM solvers can be used by Nak.

    Definition Classes
    LiblinearClassifier → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compose[A](g: (A) ⇒ Array[(Int, Double)]): (A) ⇒ Array[Double]

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

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

    Definition Classes
    AnyRef → Any
  13. def evalIndexed(observations: Seq[FeatureObservation[Int]]): Array[Double]

    Evaluate the given indexed feature observations.

    Evaluate the given indexed feature observations. Calls the apply method, which must interface with some underlying representation of the system used; e.g. see the LiblinearClassifier class.

    Definition Classes
    Classifier
  14. def evalUnindexed(observations: Seq[FeatureObservation[String]]): Array[Double]

    Evaluate the un-indexed feature observations.

    Evaluate the un-indexed feature observations. Uses the feature map to index the observations and then pass them on to evalIndexed of Classifier.

    Definition Classes
    IndexedClassifier
  15. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  18. def indexOfFeature(feature: String): Option[Int]

    Get the index of a feature.

    Get the index of a feature.

    Definition Classes
    LiblinearClassifierFeatureMap
  19. def indexOfLabel(label: String): Int

    Get the index of a label.

    Get the index of a label.

    Definition Classes
    LiblinearClassifierLabelMap
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def labelOfIndex(index: Int): String

    Get the label at the given index.

    Get the label at the given index.

    Definition Classes
    LiblinearClassifierLabelMap
  22. lazy val labels: Seq[String]

    Definition Classes
    LiblinearClassifierLabelMap
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  26. lazy val numLabels: Int

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IndexedClassifier[String]

Inherited from FeatureMap

Inherited from LabelMap[String]

Inherited from Classifier

Inherited from Serializable

Inherited from Serializable

Inherited from (Array[(Int, Double)]) ⇒ Array[Double]

Inherited from AnyRef

Inherited from Any

Ungrouped