Liking cljdoc? Tell your friends :D

org.replikativ.foerster.program

Programmable weighted inference using ordinary Spin control flow. Targets share a representation and a fixed state space. Custom scores/proposals and invariant value transitions have explicit mathematical obligations; a result does not automatically certify an unbiased likelihood estimator.

Programmable weighted inference using ordinary Spin control flow.
Targets share a representation and a fixed state space. Custom scores/proposals
and invariant value transitions have explicit mathematical obligations; a
result does not automatically certify an unbiased likelihood estimator.
raw docstring

advanceclj/s

(advance scope population target)

Reweight in the same state space. A trace population version is consumed; target adaptation needs its own statistical justification.

Reweight in the same state space. A trace population version is consumed;
target adaptation needs its own statistical justification.
sourceraw docstring

bp__org.replikativ.foerster.core_SLASH_deterministicclj

source

bp__org.replikativ.foerster.core_SLASH_factorclj

source

bp__org.replikativ.foerster.core_SLASH_observeclj

source

bp__org.replikativ.foerster.core_SLASH_sampleclj

source

bp__org.replikativ.foerster.effects_SLASH_chooseclj

source

bp__org.replikativ.foerster.effects_SLASH_deterministicclj

source

bp__org.replikativ.foerster.effects_SLASH_factorclj

source

bp__org.replikativ.foerster.effects_SLASH_observeclj

source

bp__org.replikativ.foerster.effects_SLASH_sampleclj

source

bp__org.replikativ.spindel.effects.await_SLASH_awaitclj

source

bp__org.replikativ.spindel.effects.await_SLASH_await_finalizationclj

source

bp__org.replikativ.spindel.effects.savepoint_SLASH_savepointclj

source

bp__org.replikativ.spindel.effects.track_SLASH_trackclj

source

essclj/s

(ess population)
source

finishclj/s

(finish scope population)

Project to the shared settled measure API. run joins resource cleanup before delivery. Live trace handles are consumed; numeric value snapshots persist.

Project to the shared settled measure API. run joins resource cleanup before
delivery. Live trace handles are consumed; numeric value snapshots persist.
sourceraw docstring

forkclj/s

(fork scope population)

Copy a live population with independent future random streams. The source remains usable. Trace copies share read-only anchors under the owner scope.

Copy a live population with independent future random streams. The source
remains usable. Trace copies share read-only anchors under the owner scope.
sourceraw docstring

initializeclj/s

(initialize scope target n)
(initialize scope target n {:keys [id] :as opts})

Initialize an independent population. Optional :id names its logical RNG stream for concurrent programs; a name may be used once per scope. Default identities follow sequential initialization order.

Initialize an independent population. Optional :id names its logical RNG
stream for concurrent programs; a name may be used once per scope. Default
identities follow sequential initialization order.
sourceraw docstring

invariant-kernelclj/s

(invariant-kernel target step)

Bind a value transition to a target. step receives a value and returns a value. The author must establish invariance and fixed tuning independent of the population being moved and the offspring slot; this constructor does not prove either property.

Bind a value transition to a target. step receives a value and returns
a value. The author must establish invariance and fixed tuning independent of
the population being moved and the offspring slot; this constructor does not prove either property.
sourceraw docstring

moveclj/s

(move scope population kernel)
source

PRepresentationclj/sprotocol

copy-particlesclj/s

(copy-particles representation scope target particles ancestors opts)

initialize-particlesclj/s

(initialize-particles representation scope target n opts)

move-particlesclj/s

(move-particles representation scope target particles kernel opts)

project-particleclj/s

(project-particle representation target particle)

transport-particlesclj/s

(transport-particles representation source destination particles kernel opts)
source

resampleclj/s

(resample scope population)
(resample scope
          population
          {:keys [particles method] :or {method :systematic} :as opts})
source

retargetclj/s

(retarget target position score)

Derive a value target in the same state space. Position is a label, not target identity. Changing support requires a valid proposal/transport construction. Trace targets must use temperature, not arbitrary scores.

Derive a value target in the same state space. Position is a label, not
target identity. Changing support requires a valid proposal/transport
construction. Trace targets must use temperature, not arbitrary scores.
sourceraw docstring

runclj/s

(run body)
(run opts body)

Run (body scope) with a root seed and an asynchronous resource lifetime. Scope is passed explicitly; nested programs receive independent lifetimes.

Run (body scope) with a root seed and an asynchronous resource lifetime.
Scope is passed explicitly; nested programs receive independent lifetimes.
sourceraw docstring

temperatureclj/s

(temperature target beta)
source

trace-targetclj/s

(trace-target model
              &
              [{:keys [beta executor label world-policy]
                :or {beta 0.0 world-policy :fresh}
                :as opts}])

A complete-trace target p(choices)*L(choices)^beta, not a streaming prefix. Only fresh worlds are supported here. Model effects obey the Spin discipline.

A complete-trace target p(choices)*L(choices)^beta, not a streaming prefix.
Only fresh worlds are supported here. Model effects obey the Spin discipline.
sourceraw docstring

transportclj/s

(transport scope population destination kernel)

Propose and reweight through scored forward/backward laws. Unlike move, this operation can change targets and value dimension; weights are corrected.

Propose and reweight through scored forward/backward laws. Unlike move,
this operation can change targets and value dimension; weights are corrected.
sourceraw docstring

transport-kernelclj/s

source

value-targetclj/s

(value-target
  score
  draw
  log-proposal
  &
  [{:keys [label project copy] :or {project identity copy identity} :as opts}])

A target over persistent values. draw and log-proposal must describe the same normalized proposal, covering the target's support. score is the log unnormalized target, including any constants needed for evidence.

A target over persistent values. draw and log-proposal must describe the
same normalized proposal, covering the target's support. score is the log
unnormalized target, including any constants needed for evidence.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close