Liking cljdoc? Tell your friends :D

anglican.almh

Adaptive LMH

Adaptive LMH
raw docstring

->predictclj

(->predict value choices)

Positional factory function for class anglican.almh.predict.

Positional factory function for class anglican.almh.predict.
raw docstring

add-choice-predictsclj

(add-choice-predicts state)

adds predicts for choice statistics to the state

adds predicts for choice statistics
to the state
raw docstring

add-pending-choiceclj

(add-pending-choice predict choice-id)

adds a pending choice to the predict

adds a pending choice to the predict
raw docstring

awardclj

(award state entry)

distributes rewards between random choices; returns updated state

distributes rewards between random choices;
returns updated state
raw docstring

combined-predictsclj

(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
raw docstring

initial-stateclj

initial state for ALMH

initial state for ALMH
raw docstring

initialize-last-predictsclj

(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
raw docstring

log-entry-probabilityclj

(log-entry-probability state entry)

computes log probability of the entry given state

computes log probability of the entry given state
raw docstring

map->predictclj

(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.
raw docstring

next-stateclj

(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
raw docstring

prev-stateclj

(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
raw docstring

select-entryclj

(select-entry state)

selects trace entry based on reward beliefs

selects trace entry based on reward beliefs
raw docstring

state-updateclj

(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
raw docstring

trace-weightsclj

(trace-weights state)

constructs a vector of trace weights

constructs a vector of trace weights
raw docstring

ucbclj

(ucb total-count)

returns function computing UCB of average reward

returns function computing UCB of average reward
raw docstring

update-choice-countclj

(update-choice-count state entry)

updates total count for the chosen entry

updates total count for the chosen entry
raw docstring

update-rewardclj

(update-reward [sum cnt] reward discnt)

updates choice reward with new evidence

updates choice reward with new evidence
raw docstring

update-rewardsclj

(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
raw docstring

utilityclj

(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)
raw docstring

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

× close