edu.stanford.nlp.tmt.model.lda.GibbsLDA

Sampler

class Sampler extends HardAssignmentGibbsSampler[GibbsLDADocument]

Abstract base class of a Gibbs sampler for LDA. Not threadsafe.

Attributes
abstract
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Sampler
  2. HardAssignmentGibbsSampler
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Sampler (countTopicTerm: Array[Array[Int]], countTopic: Array[Int], termSmoothing: Array[Double], topicSmoothing: Array[Double], random: MersenneTwisterFast)

Abstract Value Members

  1. def decModelTopicTerm (doc: GibbsLDADocument, topic: Int, term: Int): Unit

    Decrement the given count of topic and term in the model data structures.

    Decrement the given count of topic and term in the model data structures.

    Attributes
    abstract
    Definition Classes
    HardAssignmentGibbsSampler
  2. def incModelTopicTerm (doc: GibbsLDADocument, topic: Int, term: Int): Unit

    Increment the given count of topic and term in the model data structures.

    Increment the given count of topic and term in the model data structures.

    Attributes
    abstract
    Definition Classes
    HardAssignmentGibbsSampler

Concrete 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. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. val dist : Array[Double]

    Temporary array populated by sampling (not safe to use the same sampler in more than one thread).

  9. def eq (arg0: AnyRef): Boolean

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  13. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  15. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  18. val numTerms : Int

  19. val numTopics : Int

  20. def sample (doc: GibbsLDADocument): Unit

    Resamples each topic assignment in the given document.

    Resamples each topic assignment in the given document.

    Definition Classes
    HardAssignmentGibbsSampler
  21. def sampleZ (doc: GibbsLDADocument, term: Int): Int

    Creates and samples from a probability distribution over topics for a given term.

    Creates and samples from a probability distribution over topics for a given term.

    Definition Classes
    SamplerHardAssignmentGibbsSampler
  22. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  23. val termSmoothDenom : Double

  24. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from HardAssignmentGibbsSampler[GibbsLDADocument]

Inherited from AnyRef

Inherited from Any