cc.factorie.infer

IteratedConditionalModes

class IteratedConditionalModes extends SettingsMaximizer[Var with IterableSettings]

Besag's Iterated Conditional Modes. Visit a variable, and set it to its highest scoring value (based on current value of its factors' neighbors).

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IteratedConditionalModes
  2. SettingsMaximizer
  3. SettingsSampler
  4. ProposalSampler
  5. Sampler
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IteratedConditionalModes(model: model.Model, objective: model.Model = null)

Type Members

  1. type ContextType = Var with IterableSettings

    Definition Classes
    Sampler

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. var changeCount: Int

    The number of calls to process that resulted in a change (a non-empty DiffList)

    The number of calls to process that resulted in a change (a non-empty DiffList)

    Definition Classes
    Sampler
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  15. var iterationCount: Int

    The number of calls to process(numIterations:Int) or process(contexts:C,numIterations:Int).

    The number of calls to process(numIterations:Int) or process(contexts:C,numIterations:Int).

    Definition Classes
    Sampler
  16. var makeNewDiffList: Boolean

    If true, calls to "newDiffList" will create a new DiffList to describe the changes they made, otherwise "newDiffList" will return null.

    If true, calls to "newDiffList" will create a new DiffList to describe the changes they made, otherwise "newDiffList" will return null.

    Definition Classes
    Sampler
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def newDiffList: variable.DiffList

    In your implementation of "process1" use this method to optionally create a new DiffList, obeying "makeNewDiffList".

    In your implementation of "process1" use this method to optionally create a new DiffList, obeying "makeNewDiffList".

    Definition Classes
    Sampler
  19. def noDiffList: IteratedConditionalModes.this.type

    Convenient method for setting makeNewDiffList to false, and returning this.

    Convenient method for setting makeNewDiffList to false, and returning this.

    Definition Classes
    Sampler
  20. final def notify(): Unit

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

    Definition Classes
    AnyRef
  22. def pickProposal(proposals: Seq[Proposal[Var with IterableSettings]]): Proposal[Var with IterableSettings]

    Definition Classes
    SettingsMaximizerProposalSampler
  23. def postIterationHook: Boolean

    Called after each iteration of sampling the full list of variables.

    Called after each iteration of sampling the full list of variables. Return false if you want sampling to stop early.

    Definition Classes
    Sampler
  24. val postIterationHooks: Hooks0

    Definition Classes
    Sampler
  25. def postProcessHook(context: Var with IterableSettings, difflist: DiffList): Unit

    Call just after each step of sampling.

    Call just after each step of sampling.

    Definition Classes
    Sampler
  26. def preProcessHook(context: Var with IterableSettings): Var with IterableSettings

    Called just before each step of sampling.

    Called just before each step of sampling. Return an alternative variable if you want that one sampled instead. Return null if you want to abort sampling of this context.

    Definition Classes
    Sampler
  27. final def process(count: Int): Unit

    Definition Classes
    Sampler
  28. final def process(context: Var with IterableSettings, repeat: Int): Unit

    Definition Classes
    Sampler
  29. final def process(context: Var with IterableSettings): DiffList

    Do one step of sampling.

    Do one step of sampling. This is a method intended to be called by users. It manages hooks and processCount.

    Definition Classes
    Sampler
  30. def process1(context: Var with IterableSettings): DiffList

    The underlying protected method that actually does the work.

    The underlying protected method that actually does the work. Use this.newDiffList to optionally create returned DiffList. Needs to be defined in subclasses.

    Definition Classes
    ProposalSamplerSampler
  31. final def processAll(contexts: Iterable[Var with IterableSettings], numIterations: Int): Unit

    Definition Classes
    Sampler
  32. final def processAll(contexts: Iterable[Var with IterableSettings], returnDiffs: Boolean = false): DiffList

    Definition Classes
    Sampler
  33. var processCount: Int

    The number of calls to process(context:C)

    The number of calls to process(context:C)

    Definition Classes
    Sampler
  34. def processProposals(props: Seq[Proposal[Var with IterableSettings]]): DiffList

    Definition Classes
    ProposalSampler
  35. def proposalHook(proposal: Proposal[Var with IterableSettings]): Unit

    Definition Classes
    ProposalSampler
  36. val proposalHooks: Hooks1[Proposal[Var with IterableSettings]]

    Definition Classes
    ProposalSampler
  37. def proposals(context: Var with IterableSettings): Seq[Proposal[Var with IterableSettings]]

    Definition Classes
    SettingsSamplerProposalSampler
  38. def proposalsHook(proposals: Seq[Proposal[Var with IterableSettings]]): Unit

    Definition Classes
    ProposalSampler
  39. val proposalsHooks: Hooks1[Seq[Proposal[Var with IterableSettings]]]

    Definition Classes
    ProposalSampler
  40. implicit val random: Random

    Definition Classes
    SettingsSamplerSampler
  41. def settings(v: Var with IterableSettings): SettingIterator

    Abstract method must be implemented in sub-classes.

    Abstract method must be implemented in sub-classes. Provides access to all different possible worlds we will evaluate for each call to 'process'

    Definition Classes
    IteratedConditionalModesSettingsSampler
  42. def skipEmptyProposals: Boolean

    Definition Classes
    ProposalSampler
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. var temperature: Double

    Definition Classes
    ProposalSampler
  45. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SettingsMaximizer[Var with IterableSettings]

Inherited from SettingsSampler[Var with IterableSettings]

Inherited from ProposalSampler[Var with IterableSettings]

Inherited from Sampler[Var with IterableSettings]

Inherited from AnyRef

Inherited from Any

Ungrouped