Inference state
Inference state
(add-log-weight state log-weight)
add log-weight to the accumulated log-weight in the state
add log-weight to the accumulated log-weight in the state
(add-predict state label value)
add predict label and value to the list of predicts
add predict label and value to the list of predicts
(current-catch-cont state)
returns current catch continuation of the catch stack
returns current catch continuation of the catch stack
(get-log-weight state)
get accumulated log-weight
get accumulated log-weight
(get-mem state id args)
retrieves memoized function call
retrieves memoized function call
(get-predicts state)
returns collected predicts as an array map
returns collected predicts as an array map
(get-result state)
Returns the result value of the state.
Returns the result value of the state.
(in-mem? state id args)
true when the function call is memoized
true when the function call is memoized
(pop-catch state)
pops catch from the catch stack, returns updated state
pops catch from the catch stack, returns updated state
(pop-catch-until-tag state tag)
pops continuations off the catch stack until the topmost continuation matches the tag
pops continuations off the catch stack until the topmost continuation matches the tag
(push-catch state tag cont)
pushes catch continuation and catch tag to the catch stack, returns updated state
pushes catch continuation and catch tag to the catch stack, returns updated state
(retrieve state & keys)
retrieves store contents
retrieves store contents
(set-log-weight state log-weight)
resets the weight to the specified value
resets the weight to the specified value
(set-mem state id args value)
stores memoized result of function call, returns the update state
stores memoized result of function call, returns the update state
(set-result state value)
Sets the result value for the state.
Sets the result value for the state.
(store state & args)
updates the store with a new value
updates the store with a new value
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close