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.
sourceraw docstring

add-choice-predictsclj

(add-choice-predicts state)

adds predicts for choice statistics to the state

adds predicts for choice statistics
to the state
sourceraw docstring

add-pending-choiceclj

(add-pending-choice predict choice-id)

adds a pending choice to the predict

adds a pending choice to the predict
sourceraw docstring

awardclj

(award state entry)

distributes rewards between random choices; returns updated state

distributes rewards between random choices;
returns updated state
sourceraw 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
sourceraw docstring

initial-stateclj

initial state for ALMH

initial state for ALMH
sourceraw 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
sourceraw 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
sourceraw 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.
sourceraw 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
sourceraw 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
sourceraw docstring

select-entryclj

(select-entry state)

selects trace entry based on reward beliefs

selects trace entry based on reward beliefs
sourceraw 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
sourceraw docstring

trace-weightsclj

(trace-weights state)

constructs a vector of trace weights

constructs a vector of trace weights
sourceraw docstring

ucbclj

(ucb total-count)

returns function computing UCB of average reward

returns function computing UCB of average reward
sourceraw docstring

update-choice-countclj

(update-choice-count state entry)

updates total count for the chosen entry

updates total count for the chosen entry
sourceraw docstring

update-rewardclj

(update-reward [sum cnt] reward discnt)

updates choice reward with new evidence

updates choice reward with new evidence
sourceraw 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
sourceraw 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)
sourceraw docstring

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

× close