Liking cljdoc? Tell your friends :D

anglican.lmh

Lightweight Metropolis-Hastings

Lightweight Metropolis-Hastings
raw docstring

->entryclj

(->entry choice-id value log-p cont)

Positional factory function for class anglican.lmh.entry.

Positional factory function for class anglican.lmh.entry.
sourceraw docstring

accept?clj

(accept? u-next u-prev)

compute acceptance ratio for a sample, given the new state utility and the old state utility

compute acceptance ratio for a sample, given the new state utility
and the old state utility
sourceraw docstring

choice-idclj

(choice-id smp state)

returns a unique idenditifer for sample checkpoint and the updated state

returns a unique idenditifer for sample checkpoint
and the updated state
sourceraw docstring

correct-log-weightclj

(correct-log-weight state)

corrects log weight of a sample, setting it to 0 if the sample is in the support, -Infinity otherwise

corrects log weight of a sample, setting it to 0
if the sample is in the support, -Infinity otherwise
sourceraw docstring

get-log-retained-probabilityclj

(get-log-retained-probability state)

computes log probability of retained random choices

computes log probability of retained random choices
sourceraw docstring

get-traceclj

(get-trace state)

returns trace

returns trace
sourceraw docstring

initial-stateclj

initial state for LMH

initial state for LMH
sourceraw docstring

map->entryclj

(map->entry m__7585__auto__)

Factory function for class anglican.lmh.entry, taking a map of keywords to field values.

Factory function for class anglican.lmh.entry, taking a map of keywords to field values.
sourceraw docstring

next-stateclj

(next-state state entry)
(next-state state entry update)

produces next state given current state and the trace entry to resample

produces next state given current state
and the trace entry to resample
sourceraw docstring

prev-stateclj

(prev-state state next-state entry)
(prev-state state next-state entry update)

produces previous state given the current and the next state and the resampled entry by re-attaching new rdb to the original state

produces previous state given the current and
the next state and the resampled entry
by re-attaching new rdb to the original state
sourceraw docstring

rdbclj

(rdb trace)

creates random database from trace

creates random database from trace
sourceraw docstring

record-choiceclj

(record-choice state choice-id value log-p cont)

records random choice in the state

records random choice in the state
sourceraw docstring

utilityclj

(utility state)

computes state utility, used to determine the acceptance log-probability as (next-utility - prev-utility)

computes state utility, used to determine
the acceptance log-probability as (next-utility - prev-utility)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close