edu.stanford.nlp.tmt.learn

SerialModeler

class SerialModeler [ModelParams, Model, ModelState, DatumParams, Datum, DatumState] extends Modeler[ModelParams, Model, ModelState, DatumParams, Datum, DatumState]

Single-threaded modeler that holds data items in an internal ListBuffer.

Linear Supertypes
Modeler[ModelParams, Model, ModelState, DatumParams, Datum, DatumState], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SerialModeler
  2. Modeler
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SerialModeler (companion: LocalUpdateModelCompanion[ModelParams, Model, ModelState, DatumParams, Datum, DatumState])

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  6. var _iter : Option[Iterator[Datum]]

    Attributes
    protected
  7. var _model : Option[Model]

    Attributes
    protected
  8. def addData (dps: Iterable[DatumParams]): Unit

    Adds the given data items.

    Adds the given data items.

    Definition Classes
    SerialModelerModeler
  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def clearData (): Unit

    Clears all data items.

    Clears all data items.

    Definition Classes
    SerialModelerModeler
  11. def clearDataState (): Unit

    Clears the state of all data items (but does not remove them).

    Clears the state of all data items (but does not remove them).

    Definition Classes
    SerialModelerModeler
  12. def clearModelState (): Unit

    Clears the model state (re-initializes).

    Clears the model state (re-initializes).

    Definition Classes
    SerialModelerModeler
  13. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. val companion : LocalUpdateModelCompanion[ModelParams, Model, ModelState, DatumParams, Datum, DatumState]

    Model companion used by this modeler.

    Model companion used by this modeler.

    Definition Classes
    SerialModelerModeler
  15. val data : ListBuffer[Datum]

  16. def description : String

    Description of the model being trained.

    Description of the model being trained.

    Definition Classes
    SerialModelerModeler
  17. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  18. def equals (arg0: Any): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def getData : ListBuffer[Datum]

    Returns all data items.

    Returns all data items.

    Definition Classes
    SerialModelerModeler
  22. def getDataSize (): Int

    Returns the number of data items available.

    Returns the number of data items available.

    Definition Classes
    SerialModelerModeler
  23. def getDataState (): LazyIterable[DatumState]

    Returns the state of all data items.

    Returns the state of all data items.

    Definition Classes
    SerialModelerModeler
  24. def getMappedDataState [X] (f: (DatumState) ⇒ X)(implicit arg0: ReadWritable[X]): Iterable[X]

    Returns a function of the given data states.

    Returns a function of the given data states.

    Definition Classes
    Modeler
  25. def getModelParams (): ModelParams

    Definition Classes
    SerialModelerModeler
  26. def getModelState (): ModelState

    Gets the current model state.

    Gets the current model state.

    Definition Classes
    SerialModelerModeler
  27. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  28. def initialize (mp: ModelParams): Unit

    Clears all documents and begins using the given model.

    Clears all documents and begins using the given model.

    Definition Classes
    SerialModelerModeler
  29. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  30. def learnIteration (): Unit

    Does one iteration of learning.

    Does one iteration of learning.

    Definition Classes
    SerialModelerModeler
  31. def model : Option[Model]

    Returns the current model, if one has been initialized.

    Returns the current model, if one has been initialized.

    Definition Classes
    SerialModelerModeler
  32. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  33. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  34. def notifyAll (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  36. def toString (): String

    Definition Classes
    AnyRef → Any
  37. def train (mp: ModelParams, data: Iterable[DatumParams], output: File = null, saveDataState: Boolean = true, maxIterations: Int = 1, outputIterations: Option[Int] = Some(50))(implicit msrw: ReadWritable[ModelState], mprw: ReadWritable[ModelParams], dr: TableRowReadable[DatumState], dw: TableRowWritable[DatumState]): Unit

    Train the model on the given data.

    Train the model on the given data.

    Definition Classes
    Modeler
  38. def useDataState (dss: Iterable[DatumState]): Unit

    Uses the given data state.

    Uses the given data state.

    Definition Classes
    SerialModelerModeler
  39. def useModelState (ms: ModelState): Unit

    Uses the given ModelState in the current model.

    Uses the given ModelState in the current model.

    Definition Classes
    SerialModelerModeler
  40. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Modeler[ModelParams, Model, ModelState, DatumParams, Datum, DatumState]

Inherited from AnyRef

Inherited from Any