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
(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
(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |