cc.factorie.app.bib.experiments

AuthorSamplerWriterWithReliability

class AuthorSamplerWriterWithReliability extends AuthorSamplerWriter

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AuthorSamplerWriterWithReliability
  2. AuthorSamplerWriter
  3. HumanEditDebugUtils
  4. AuthorSampler
  5. BibSampler
  6. SamplingStatistics
  7. HierCorefSampler
  8. SettingsSampler
  9. ProposalSampler
  10. Sampler
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AuthorSamplerWriterWithReliability(model: model.Model, initialDB: Seq[AuthorEntity], evidenceBatches: Seq[Seq[AuthorEntity]], initialDBNameOpt: Option[String] = scala.None, evidenceBatchNames: Option[Seq[String]] = scala.None, initialSteps: Int = 0, stepsPerBatch: Int = 10000, initInstructionsOpt: Option[Seq[Seq[() ⇒ Unit]]])

Type Members

  1. type ContextType = Null

    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. 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[AuthorEntity]): Unit

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

    Definition Classes
    BibSamplerHierCorefSampler
  14. var allDiffVarsInWindow: Int

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

    Definition Classes
    Any
  16. var averageCorrect: Double

  17. var averageReliability: UserReliabilityVariable

  18. var batchCount: Int

    Definition Classes
    AuthorSamplerWriter
  19. def calculateInstantaneousAcceptanceRate(): Unit

    Definition Classes
    BibSampler
  20. var canopies: HashMap[String, ArrayBuffer[AuthorEntity]]

    Attributes
    protected
    Definition Classes
    BibSampler
  21. var canopyStats: CanopyStatistics[AuthorEntity]

    Attributes
    protected
    Definition Classes
    BibSampler
  22. 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
  23. def checkEntities(): Unit

    Definition Classes
    AuthorSamplerWriter
  24. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def collapse(entity: AuthorEntity)(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
  26. var curScore: Double

    Definition Classes
    AuthorSamplerWriter
  27. def debugEditAffinityToGenerator(e: AuthorEntity): Int

    Definition Classes
    HumanEditDebugUtils
  28. def debugSNLConstraint(editMention: AuthorEntity): Unit

    Definition Classes
    HumanEditDebugUtils
  29. var deletedEntities: ArrayBuffer[AuthorEntity]

    Attributes
    protected
    Definition Classes
    HierCorefSampler
  30. var entities: ArrayBuffer[AuthorEntity]

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

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

    Definition Classes
    AnyRef → Any
  33. var evidenceSoFar: ArrayBuffer[AuthorEntity]

    Definition Classes
    AuthorSamplerWriter
  34. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  36. def getDeletedEntities: Seq[AuthorEntity]

    Definition Classes
    HierCorefSampler
  37. def getEntities: Seq[AuthorEntity]

    Definition Classes
    HierCorefSampler
  38. var gtEntityCount: Int

    Definition Classes
    AuthorSamplerWriter
  39. def hashCode(): Int

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

    Definition Classes
    HierCorefSampler
  41. def initializeAttributesOfNewRoot(e1: AuthorEntity, e2: AuthorEntity, parent: AuthorEntity)(implicit d: variable.DiffList): Unit

    Attributes
    protected
    Definition Classes
    AuthorSamplerHierCorefSampler
  42. var intervalTime: Long

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

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

    Definition Classes
    HierCorefSampler
  45. 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
  46. val labeledData: Seq[AuthorEntity]

    Definition Classes
    AuthorSamplerWriter
  47. 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
  48. var maxScore: Double

    Definition Classes
    AuthorSamplerWriter
  49. var mentionCount: Int

    Definition Classes
    AuthorSamplerWriter
  50. def mergeEditToGenerator(e: AuthorEntity, d: variable.DiffList): Unit

    Definition Classes
    HumanEditDebugUtils
  51. def mergeLeft(left: AuthorEntity, right: AuthorEntity)(implicit d: variable.DiffList): Unit

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

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

    Definition Classes
    AuthorSamplerBibSamplerHierCorefSampler
  52. def mergeUp(e1: AuthorEntity, e2: AuthorEntity)(implicit d: variable.DiffList): AuthorEntity

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

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

    Definition Classes
    BibSamplerHierCorefSampler
  53. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  54. 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
  55. def newEntity: AuthorEntity

    Definition Classes
    AuthorSamplerHierCorefSampler
  56. def nextEntity(context: AuthorEntity = null.asInstanceOf[E]): AuthorEntity

    Definition Classes
    BibSamplerHierCorefSampler
  57. def nextEntity: AuthorEntity

    Returns a random entity that 'exists'

    Returns a random entity that 'exists'

    Definition Classes
    HierCorefSampler
  58. def nextEntityPair: (AuthorEntity, AuthorEntity)

    Definition Classes
    HierCorefSampler
  59. def noDiffList: AuthorSamplerWriterWithReliability.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
  60. final def notify(): Unit

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

    Definition Classes
    AnyRef
  62. var numAccepted: Long

    Definition Classes
    SamplingStatistics
  63. var numAcceptedInTimeWindow: Int

    Definition Classes
    SamplingStatistics
  64. def numCanopies: Int

    Definition Classes
    BibSampler
  65. var numDiffVars: Long

    Definition Classes
    SamplingStatistics
  66. var numDiffVarsInWindow: Int

    Definition Classes
    SamplingStatistics
  67. var numNonTrivialDiffs: Int

    Definition Classes
    SamplingStatistics
  68. def objective: model.Model

    Definition Classes
    SettingsSampler
  69. var optionalId: Int

    Definition Classes
    BibSampler
  70. def performMaintenance(es: ArrayBuffer[AuthorEntity]): 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
  71. def pickProposal(proposals: Seq[Proposal[Null]]): Proposal[Null]

    Definition Classes
    BibSamplerProposalSampler
  72. def positiveEdit(editMention: AuthorEntity): Boolean

  73. def positiveSLEdit(editMention: AuthorEntity): Boolean

  74. def positiveSNLEdit(editMention: AuthorEntity): Boolean

  75. def postInferenceHook(evidence: Seq[AuthorEntity]): Unit

  76. 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
  77. val postIterationHooks: Hooks0

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

    Call just after each step of sampling.

    Call just after each step of sampling.

    Definition Classes
    Sampler
  79. 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
  80. var printDotInterval: Long

    Definition Classes
    SamplingStatistics
  81. var printInfo: Boolean

    Definition Classes
    SamplingStatistics
  82. def printRelAcc(): Unit

  83. def printSNLStatistics(): Unit

    Definition Classes
    HumanEditDebugUtils
  84. def printSamplingInfo(count: Long = proposalCount): Unit

    Definition Classes
    BibSampler
  85. var printUpdateInterval: Long

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

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

    Definition Classes
    Sampler
  88. 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
  89. 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
  90. final def processAll(contexts: Iterable[Null], numIterations: Int): Unit

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

    Definition Classes
    Sampler
  92. var processCount: Int

    The number of calls to process(context:C)

    The number of calls to process(context:C)

    Definition Classes
    Sampler
  93. def processExperiment(pw: PrintWriter): Unit

    Definition Classes
    AuthorSamplerWriter
  94. def processExperiment(pw: PrintWriter, newEvidenceBatches: Seq[Seq[AuthorEntity]]): Unit

    Definition Classes
    AuthorSamplerWriter
  95. def processProposals(props: Seq[Proposal[Null]]): DiffList

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

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

    Attributes
    protected
    Definition Classes
    BibSamplerHierCorefSampler
  98. var proposalCount: Long

    Definition Classes
    SamplingStatistics
  99. 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
    AuthorSamplerWriterAuthorSamplerBibSamplerHierCorefSamplerProposalSampler
  100. val proposalHooks: Hooks1[Proposal[Null]]

    Definition Classes
    ProposalSampler
  101. def proposals(c: Null): Seq[Proposal[Null]]

    Definition Classes
    AuthorSamplerSettingsSamplerProposalSampler
  102. def proposalsHook(proposals: Seq[Proposal[Null]]): Unit

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

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

    Definition Classes
    AuthorSamplerHierCorefSampler
  105. var pwOption: Option[PrintWriter]

    Attributes
    protected
    Definition Classes
    AuthorSamplerWriter
  106. implicit val random: Random

    Definition Classes
    SettingsSamplerSampler
  107. def reset(): Unit

  108. def resetSamplingStatistics(): Unit

    Definition Classes
    SamplingStatistics
  109. def sampleAttributes(author: AuthorEntity)(implicit d: variable.DiffList): Unit

    Definition Classes
    AuthorSamplerHierCorefSampler
  110. def sampleEntity(samplePool: ArrayBuffer[AuthorEntity]): AuthorEntity

    Attributes
    protected
    Definition Classes
    HierCorefSampler
  111. def setEntities(ents: Iterable[AuthorEntity]): Unit

    Definition Classes
    BibSamplerHierCorefSampler
  112. def setUsers(us: Seq[UserReliabilityVariable]): Unit

  113. 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
    AuthorSamplerHierCorefSamplerSettingsSampler
  114. var settingsSamplerCount: Int

    Definition Classes
    AuthorSampler
  115. val shortDecimal: DecimalFormat

    Definition Classes
    SamplingStatistics
  116. var singletonCanopies: ArrayBuffer[AuthorEntity]

    Attributes
    protected
    Definition Classes
    BibSampler
  117. def skipEmptyProposals: Boolean

    Definition Classes
    ProposalSampler
  118. def snapshot(time: Long, numSamples: Int, numAccepted: Int, scores: Iterable[Double]): Unit

    Definition Classes
    AuthorSamplerWriter
  119. def snapshotInterval: Int

    Definition Classes
    AuthorSamplerWriter
  120. var snlSatisfied: Int

    Definition Classes
    HumanEditDebugUtils
  121. def snlTotal: Int

    Definition Classes
    HumanEditDebugUtils
  122. def snlViolated: Int

    Definition Classes
    HumanEditDebugUtils
  123. def snlViolatedDueToGenerator: Int

    Definition Classes
    HumanEditDebugUtils
  124. def snlViolatedDueToInference: Int

    Definition Classes
    HumanEditDebugUtils
  125. var snlViolatedDueToInferenceAtGenerator: Int

    Definition Classes
    HumanEditDebugUtils
  126. var snlViolatedDueToInferenceAtLink: Int

    Definition Classes
    HumanEditDebugUtils
  127. def snlViolatedDueToModel: Int

    Definition Classes
    HumanEditDebugUtils
  128. var snlViolatedDueToModelAtGenerator: Int

    Definition Classes
    HumanEditDebugUtils
  129. var snlViolatedDueToModelAtLink: Int

    Definition Classes
    HumanEditDebugUtils
  130. def splitRight(left: AuthorEntity, right: AuthorEntity)(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
  131. 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
  132. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  133. var temperature: Double

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

    Definition Classes
    BibSamplerHierCorefSampler
  135. def toString(): String

    Definition Classes
    AnyRef → Any
  136. var totalTime: Long

    Attributes
    protected
    Definition Classes
    SamplingStatistics
  137. var users: Seq[UserReliabilityVariable]

  138. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AuthorSamplerWriter

Inherited from HumanEditDebugUtils

Inherited from AuthorSampler

Inherited from BibSampler[AuthorEntity]

Inherited from SamplingStatistics

Inherited from HierCorefSampler[AuthorEntity]

Inherited from SettingsSampler[Null]

Inherited from ProposalSampler[Null]

Inherited from Sampler[Null]

Inherited from AnyRef

Inherited from Any

Ungrouped