Class

edu.cmu.ml.rtw.pra.models

SVMModel

Related Doc: package models

Permalink

class SVMModel[T <: Instance] extends BatchModel[T]

Linear Supertypes
BatchModel[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SVMModel
  2. BatchModel
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SVMModel(params: JValue, outputter: Outputter)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val allowedParams: Seq[String]

    Permalink
  5. var alphabet: Alphabet

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def classifyInstances(featureMatrix: FeatureMatrix): Seq[(T, Double)]

    Permalink

    Give a score to every row in the feature matrix, according to the learned weights.

    Give a score to every row in the feature matrix, according to the learned weights.

    featureMatrix

    A feature matrix specified as a list of MatrixRow objects. Each row receives a score from the classifier.

    returns

    A map from source node to (target node, score) pairs, where the score is computed from the features in the feature matrix and the learned weights.

    Definition Classes
    BatchModel
  8. def classifyMatrixRow(row: MatrixRow): Double

    Permalink

    Compute score for matrix row according to learned parameters and support vectors which are stored in the svmClassifier

    Compute score for matrix row according to learned parameters and support vectors which are stored in the svmClassifier

    Definition Classes
    SVMModelBatchModel
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def convertFeatureMatrixToMallet(featureMatrix: FeatureMatrix, dataset: Dataset[T], featureNames: Seq[String], data: InstanceList, alphabet: Alphabet): Unit

    Permalink
    Definition Classes
    BatchModel
  11. def createKernel(): CustomKernel

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. implicit val formats: DefaultFormats.type

    Permalink
  16. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  19. val kernel: CustomKernel

    Permalink
  20. def matrixRowToInstance(row: MatrixRow, alphabet: Alphabet): Instance

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. var svmClassifier: SVMClassifier

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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. def train(featureMatrix: FeatureMatrix, dataset: Dataset[T], featureNames: Seq[String]): Unit

    Permalink

    Given a feature matrix and a list of sources and targets that determines whether an instances is positive or negative, train an SVM.

    Given a feature matrix and a list of sources and targets that determines whether an instances is positive or negative, train an SVM.

    Definition Classes
    SVMModelBatchModel
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BatchModel[T]

Inherited from AnyRef

Inherited from Any

Ungrouped