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: 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: (Array[Double]) ⇒ A): (Array[(Int, Double)]) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. 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
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

    Definition Classes
    AnyRef → Any
  11. 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
  12. 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
  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. def indexOfFeature(feature: String): Option[Int]

    Get the index of a feature.

    Get the index of a feature.

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

    Get the index of a label.

    Get the index of a label.

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

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

    Get the label at the given index.

    Get the label at the given index.

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

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

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

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

    Definition Classes
    AnyRef
  24. lazy val numLabels: Int

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. 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