Liking cljdoc? Tell your friends :D

anglican.bamc

Bayesian ascent Monte Carlo Options: :predict-candidates (false by default) - output all samples rather than just those with increasing log-weight

Bayesian ascent Monte Carlo
Options:
  :predict-candidates (false by default)
    - output all samples rather than just those
      with increasing log-weight
raw docstring

->entryclj

(->entry bandit-id value past-reward)

Positional factory function for class anglican.bamc.entry.

Positional factory function for class anglican.bamc.entry.
sourceraw docstring

->multiarmed-banditclj

(->multiarmed-bandit arms new-arm-belief new-arm-count new-arm-drawn)

Positional factory function for class anglican.bamc.multiarmed-bandit.

Positional factory function for class anglican.bamc.multiarmed-bandit.
sourceraw docstring

add-bandit-predictclj

(add-bandit-predict state)

add bandit arms and counts as a predict

add bandit arms and counts as a predict
sourceraw docstring

add-trace-predictclj

(add-trace-predict state)

adds trace as a predict

adds trace as a predict
sourceraw docstring

backpropagateclj

(backpropagate state)

back propagate reward to bandits

back propagate reward to bandits
sourceraw docstring

bandit-idclj

(bandit-id smp state)
source

bayesian-beliefcljprotocol

Bayesian belief

Bayesian belief

bb-as-priorclj

(bb-as-prior belief)

returns a belief for use as a prior belief

returns a belief for use as a prior belief

bb-sampleclj

(bb-sample belief)

returns a random sample from the belief distribution

returns a random sample from the belief distribution

bb-sample-meanclj

(bb-sample-mean belief)

returns a random sample from the mean belief distribution

returns a random sample from the mean belief distribution

bb-updateclj

(bb-update belief evidence)

updates belief based on the evidence

updates belief based on the evidence
sourceraw docstring

fresh-banditclj

bandit with no arm pulls

bandit with no arm pulls
sourceraw docstring

initial-reward-beliefclj

uninformative mean reward belief

uninformative mean reward belief
sourceraw docstring

initial-stateclj

initial state for MAP estimation

initial state for MAP estimation
sourceraw docstring

map->entryclj

(map->entry m__7585__auto__)

Factory function for class anglican.bamc.entry, taking a map of keywords to field values.

Factory function for class anglican.bamc.entry, taking a map of keywords to field values.
sourceraw docstring

map->multiarmed-banditclj

(map->multiarmed-bandit m__7585__auto__)

Factory function for class anglican.bamc.multiarmed-bandit, taking a map of keywords to field values.

Factory function for class anglican.bamc.multiarmed-bandit, taking a map of keywords to field values.
sourceraw docstring

not-a-value?clj

(not-a-value? value)

true when new value must be sampled

true when new value must be sampled
sourceraw docstring

record-choiceclj

(record-choice state bandit-id value past-reward)

records random choice in the state

records random choice in the state
sourceraw docstring

reward-beliefclj

(reward-belief sum sum2 cnt)

returns reification of bayesian belief about the mean reward of an arm

returns reification of bayesian belief
about the mean reward of an arm
sourceraw docstring

select-valueclj

(select-value bandit log-p)

selects value corresponding to the best arm

selects value corresponding to the best arm
sourceraw docstring

update-banditclj

(update-bandit bandit value reward)

updates bandit's belief

updates bandit's belief
sourceraw docstring

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

× close