Adaptive LMH
Adaptive LMH
(->predict value choices)
Positional factory function for class anglican.almh.predict.
Positional factory function for class anglican.almh.predict.
(add-choice-predicts state)
adds predicts for choice statistics to the state
adds predicts for choice statistics to the state
(add-pending-choice predict choice-id)
adds a pending choice to the predict
adds a pending choice to the predict
(award state entry)
distributes rewards between random choices; returns updated state
distributes rewards between random choices; returns updated state
(combined-predicts state)
combines current predicts with last predicts for which no current predict is available, assigning the latters +not-a-predict+ as the value; returns combined predicts
combines current predicts with last predicts for which no current predict is available, assigning the latters +not-a-predict+ as the value; returns combined predicts
(initialize-last-predicts state)
initializes last predicts from current predicts, called on the first end state; returns updated state
initializes last predicts from current predicts, called on the first end state; returns updated state
(log-entry-probability state entry)
computes log probability of the entry given state
computes log probability of the entry given state
(map->predict m__7585__auto__)
Factory function for class anglican.almh.predict, taking a map of keywords to field values.
Factory function for class anglican.almh.predict, taking a map of keywords to field values.
(next-state state entry)
produces next state given current state and the trace entry to resample
produces next state given current state and the trace entry to resample
(prev-state state next-state entry)
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
(select-entry state)
selects trace entry based on reward beliefs
selects trace entry based on reward beliefs
(state-update state)
computes state update --- fields that must be transferred to the state before running random choice continuation
computes state update --- fields that must be transferred to the state before running random choice continuation
(trace-weights state)
constructs a vector of trace weights
constructs a vector of trace weights
(ucb total-count)
returns function computing UCB of average reward
returns function computing UCB of average reward
(update-choice-count state entry)
updates total count for the chosen entry
updates total count for the chosen entry
(update-reward [sum cnt] reward discnt)
updates choice reward with new evidence
updates choice reward with new evidence
(update-rewards choice-rewards pending-choices reward discnt)
updates rewards in pending choices; returns updated choice-rewards
updates rewards in pending choices; returns updated choice-rewards
(utility state entry)
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)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close