edu.cmu.ml.rtw.pra.models

BatchModel

abstract class BatchModel[T <: Instance] extends AnyRef

Handles learning and classification for models that do batch training.

Note that this only deals with _feature indices_, and has no concept of path types or anything else. So you need to be sure that the feature indices don't change between training and classification time, or your model will be all messed up.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BatchModel
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BatchModel(binarizeFeatures: Boolean, outputter: Outputter, logLevel: Int)

Abstract Value Members

  1. abstract def classifyMatrixRow(row: MatrixRow): Double

    Attributes
    protected
  2. abstract def train(featureMatrix: FeatureMatrix, dataset: Dataset[T], featureNames: Seq[String]): Unit

    Given a feature matrix and a list of sources and targets that determines whether an instance is positive or negative, train a 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. final def asInstanceOf[T0]: T0

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

    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.

  8. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    Any
  16. def matrixRowToInstance(row: MatrixRow, alphabet: Alphabet): Instance

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

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

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

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped