cc.factorie.app.bib

ParallelSampling

trait ParallelSampling[E <: HierEntity with HasCanopyAttributes[E] with Prioritizable] extends BibSampler[E]

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ParallelSampling
  2. BibSampler
  3. SamplingStatistics
  4. HierCorefSampler
  5. SettingsSampler
  6. ProposalSampler
  7. Sampler
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type ContextType = Null

    Definition Classes
    Sampler

Abstract Value Members

  1. abstract def initializeAttributesOfNewRoot(e1: E, e2: E, parent: E)(implicit d: variable.DiffList): Unit

    Attributes
    protected
    Definition Classes
    HierCorefSampler
  2. abstract def newEntity: E

    Definition Classes
    HierCorefSampler
  3. abstract def newSampler: BibSampler[E]

  4. abstract def numThreads: Int

  5. abstract def sampleAttributes(e: E)(implicit d: variable.DiffList): Unit

    Definition Classes
    HierCorefSampler

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. var _amountOfDirt: Double

    Attributes
    protected
    Definition Classes
    BibSampler
  7. var _forPSIATimeCount: Long

    Attributes
    protected
    Definition Classes
    BibSampler
  8. var _forPSIAcceptanceCount: Long

    Attributes
    protected
    Definition Classes
    BibSampler
  9. var _instantPctAccepted: Double

    Attributes
    protected
    Definition Classes
    BibSampler
  10. var _numSampleAttempts: Double

    Attributes
    protected
    Definition Classes
    BibSampler
  11. def acceptanceRateSinceLastTimeCheck: Double

    Definition Classes
    BibSampler
  12. def addEntities(ents: Iterable[E]): Unit

    Definition Classes
    BibSampler
  13. def addEntity(e: E): Unit

    Definition Classes
    BibSamplerHierCorefSampler
  14. var allDiffVarsInWindow: Int

    Definition Classes
    SamplingStatistics
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def calculateInstantaneousAcceptanceRate(): Unit

    Definition Classes
    BibSampler
  17. var canopies: HashMap[String, ArrayBuffer[E]]

    Attributes
    protected
    Definition Classes
    BibSampler
  18. var canopyStats: CanopyStatistics[E]

    Attributes
    protected
    Definition Classes
    BibSampler
  19. 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
  20. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def collapse(entity: E)(implicit d: variable.DiffList): Unit

    Removes an intermediate node in the tree, merging that nodes children to their grandparent.

    Removes an intermediate node in the tree, merging that nodes children to their grandparent.

    Definition Classes
    HierCorefSampler
  22. var deletedEntities: ArrayBuffer[E]

    Attributes
    protected
    Definition Classes
    HierCorefSampler
  23. var entities: ArrayBuffer[E]

    Attributes
    protected
    Definition Classes
    HierCorefSampler
  24. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  28. def getDeletedEntities: Seq[E]

    Definition Classes
    HierCorefSampler
  29. def getEntities: Seq[E]

    Definition Classes
    ParallelSamplingHierCorefSampler
  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. def infer(numSamples: Int): Unit

    Definition Classes
    HierCorefSampler
  32. var intervalTime: Long

    Attributes
    protected
    Definition Classes
    SamplingStatistics
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def isMention(e: Entity): Boolean

    Definition Classes
    HierCorefSampler
  35. 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
  36. def loadBalancing(): Unit

    Attributes
    protected
  37. 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
  38. def mergeLeft(left: E, right: E)(implicit d: variable.DiffList): Unit

    Jump function that proposes merge: entity1<----entity2

    Jump function that proposes merge: entity1<----entity2

    Definition Classes
    BibSamplerHierCorefSampler
  39. def mergeUp(e1: E, e2: E)(implicit d: variable.DiffList): E

    Jump function that proposes merge: entity1--->NEW-PARENT-ENTITY<---entity2

    Jump function that proposes merge: entity1--->NEW-PARENT-ENTITY<---entity2

    Definition Classes
    BibSamplerHierCorefSampler
  40. def model: model.Model

    Definition Classes
    SettingsSamplerProposalSampler
  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. 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
  43. def nextEntity(context: E = null.asInstanceOf[E]): E

    Definition Classes
    BibSamplerHierCorefSampler
  44. def nextEntity: E

    Returns a random entity that 'exists'

    Returns a random entity that 'exists'

    Definition Classes
    HierCorefSampler
  45. def nextEntityPair: (E, E)

    Definition Classes
    HierCorefSampler
  46. def noDiffList: ParallelSampling.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
  47. def nonAssignedEntities: ArrayBuffer[E]

  48. final def notify(): Unit

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

    Definition Classes
    AnyRef
  50. var numAccepted: Long

    Definition Classes
    SamplingStatistics
  51. var numAcceptedInTimeWindow: Int

    Definition Classes
    SamplingStatistics
  52. def numCanopies: Int

    Definition Classes
    BibSampler
  53. var numDiffVars: Long

    Definition Classes
    SamplingStatistics
  54. var numDiffVarsInWindow: Int

    Definition Classes
    SamplingStatistics
  55. var numNonTrivialDiffs: Int

    Definition Classes
    SamplingStatistics
  56. def objective: model.Model

    Definition Classes
    SettingsSampler
  57. var optionalId: Int

    Definition Classes
    BibSampler
  58. def performMaintenance(es: ArrayBuffer[E]): Unit

    Garbage collects all the deleted entities from the master list of entities

    Garbage collects all the deleted entities from the master list of entities

    Definition Classes
    HierCorefSampler
  59. def pickProposal(proposals: Seq[Proposal[Null]]): Proposal[Null]

    Definition Classes
    BibSamplerProposalSampler
  60. 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
  61. val postIterationHooks: Hooks0

    Definition Classes
    Sampler
  62. def postProcessHook(context: Null, difflist: DiffList): Unit

    Call just after each step of sampling.

    Call just after each step of sampling.

    Definition Classes
    Sampler
  63. def preProcessHook(context: Null): Null

    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
  64. var printDotInterval: Long

    Definition Classes
    SamplingStatistics
  65. var printInfo: Boolean

    Definition Classes
    SamplingStatistics
  66. def printSamplingInfo(count: Long = proposalCount): Unit

    Definition Classes
    BibSampler
  67. var printUpdateInterval: Long

    Definition Classes
    SamplingStatistics
  68. final def process(count: Int): Unit

    Definition Classes
    Sampler
  69. final def process(context: Null, repeat: Int): Unit

    Definition Classes
    Sampler
  70. final def process(context: Null): 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
  71. def process1(context: Null): 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
  72. final def processAll(contexts: Iterable[Null], numIterations: Int): Unit

    Definition Classes
    Sampler
  73. final def processAll(contexts: Iterable[Null], returnDiffs: Boolean = false): DiffList

    Definition Classes
    Sampler
  74. var processCount: Int

    The number of calls to process(context:C)

    The number of calls to process(context:C)

    Definition Classes
    Sampler
  75. def processProposals(props: Seq[Proposal[Null]]): DiffList

    Definition Classes
    ProposalSampler
  76. def propagateBagUp(entity: Entity)(implicit d: variable.DiffList): Unit

    Attributes
    protected
    Definition Classes
    BibSamplerHierCorefSampler
  77. def propagateRemoveBag(parting: Entity, formerParent: Entity)(implicit d: variable.DiffList): Unit

    Attributes
    protected
    Definition Classes
    BibSamplerHierCorefSampler
  78. var proposalCount: Long

    Definition Classes
    SamplingStatistics
  79. def proposalHook(proposal: Proposal[Null]): Unit

    Identify entities that are created by accepted jumps so we can add them to our master entity list.

    Identify entities that are created by accepted jumps so we can add them to our master entity list.

    Definition Classes
    BibSamplerHierCorefSamplerProposalSampler
  80. val proposalHooks: Hooks1[Proposal[Null]]

    Definition Classes
    ProposalSampler
  81. def proposals(context: Null): Seq[Proposal[Null]]

    Definition Classes
    SettingsSamplerProposalSampler
  82. def proposalsHook(proposals: Seq[Proposal[Null]]): Unit

    Definition Classes
    ProposalSampler
  83. val proposalsHooks: Hooks1[Seq[Proposal[Null]]]

    Definition Classes
    ProposalSampler
  84. def proposeMergeIfValid(entity1: E, entity2: E, changes: ArrayBuffer[(variable.DiffList) ⇒ Unit]): Unit

    Definition Classes
    HierCorefSampler
  85. implicit val random: Random

    Definition Classes
    SettingsSamplerSampler
  86. def resetSamplingStatistics(): Unit

    Definition Classes
    SamplingStatistics
  87. def sampleEntity(samplePool: ArrayBuffer[E]): E

    Attributes
    protected
    Definition Classes
    HierCorefSampler
  88. var samplers: Array[BibSampler[E]]

    Attributes
    protected
  89. def samplesPerEntityCount(numEntities: Int): Int

  90. val sampsPerMicroBatch: Int

  91. def setEntities(ents: Iterable[E]): Unit

    Definition Classes
    BibSamplerHierCorefSampler
  92. def settings(c: Null): 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
    HierCorefSamplerSettingsSampler
  93. val shortDecimal: DecimalFormat

    Definition Classes
    SamplingStatistics
  94. var singletonCanopies: ArrayBuffer[E]

    Attributes
    protected
    Definition Classes
    BibSampler
  95. def skipEmptyProposals: Boolean

    Definition Classes
    ProposalSampler
  96. def splitRight(left: E, right: E)(implicit d: variable.DiffList): Unit

    Peels off the entity "right", does not really need both arguments unless we want to error check.

    Peels off the entity "right", does not really need both arguments unless we want to error check.

    Definition Classes
    BibSamplerHierCorefSampler
  97. def structurePreservationForEntityThatLostChild(e: Entity)(implicit d: variable.DiffList): Unit

    Ensure that chains are not created in our tree.

    Ensure that chains are not created in our tree. No dangling children-entities either.

    Attributes
    protected
    Definition Classes
    HierCorefSampler
  98. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  99. var temperature: Double

    Definition Classes
    ProposalSampler
  100. def timeAndProcess(n: Int): Unit

    Definition Classes
    ParallelSamplingBibSamplerHierCorefSampler
  101. def toString(): String

    Definition Classes
    AnyRef → Any
  102. var totalTime: Long

    Attributes
    protected
    Definition Classes
    SamplingStatistics
  103. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BibSampler[E]

Inherited from SamplingStatistics

Inherited from HierCorefSampler[E]

Inherited from SettingsSampler[Null]

Inherited from ProposalSampler[Null]

Inherited from Sampler[Null]

Inherited from AnyRef

Inherited from Any

Ungrouped