Liking cljdoc? Tell your friends :D

anglican.inference

Inference abstractions

Inference abstractions
raw docstring

checkpointclj/smultimethod

execution checkpoints, processed differently depending on the inference algorithm

execution checkpoints, processed differently
depending on the inference algorithm
sourceraw docstring

checkpoint-idclj/s

(checkpoint-id cpt state checkpoint-counts checkpoint-last-id)

returns checkpoint identifier and updated state; checkpoint-counts' andcheckpoint-last-id' should be keys in the state

returns checkpoint identifier and updated state;
`checkpoint-counts' and `checkpoint-last-id' should be
keys in the state
sourceraw docstring

collect-byclj/sdeprecated

alias to anglican.stat/collect-by, provided for backwards compatibility previous releases

alias to anglican.stat/collect-by, provided for backwards
compatibility previous releases
sourceraw docstring

drop-invalidclj/s

(drop-invalid samples)

drop zero-weight samples;

  • accepts a lazy sequence of samples;
  • returns a sequence that excludes zero-weight samples
drop zero-weight samples;
- accepts a lazy sequence of samples;
- returns a sequence that excludes zero-weight samples
sourceraw docstring

equalizeclj/s

(equalize samples)

equalizes samples;

  • accepts a lazy sequence of samples;
  • returns a sequence from the same distribution with equal weights
equalizes samples;
- accepts a lazy sequence of samples;
- returns a sequence from the same distribution
  with equal weights
sourceraw docstring

execclj/s

(exec algorithm prog value state)

executes the program, calling checkpoint handlers at the checkpoints and stopping when the handler returns a non-callable value

executes the program, calling checkpoint handlers
at the checkpoints and stopping when the handler
returns a non-callable value
sourceraw docstring

inferclj/smultimethod

main inference procedure, accepts algorithm, program, and options; returns a lazy sequence of states

main inference procedure, accepts algorithm, program, and
options; returns a lazy sequence of states
sourceraw docstring

log-marginalclj/s

(log-marginal samples)

calculates the empirical estimate of the log marginal likelihood (i.e. the log mean importance weight)

calculates the empirical estimate of the log marginal likelihood
(i.e. the log mean importance weight)
sourceraw docstring

prints a predict, accepts label, value, weight, and output format

prints a predict, accepts label, value, weight, and
output format
sourceraw docstring

(print-predicts format state)

print predicts as returned by a probabilistic program in the specified format

print predicts as returned by a probabilistic program
in the specified format
sourceraw docstring

randclj/s

(rand)
(rand n)

Returns a random floating point number between 0 (inclusive) and n (default 1) (exclusive)

Returns a random floating point number
between 0 (inclusive) and n (default 1) (exclusive)
sourceraw docstring

rand-intclj/s

(rand-int n)

Returns a random integer between 0 (inclusive) and n (exclusive)

Returns a random integer between 0 (inclusive)
and n (exclusive)
sourceraw docstring

rand-nthclj/s

(rand-nth coll)

Return a random element of the (sequential) collection. Will have the same performance characteristics as nth for the given collection.

Return a random element of the (sequential) collection.
Will have the same performance characteristics as nth
for the given collection.
sourceraw docstring

rand-rouletteclj/s

(rand-roulette weights)

random roulette selection, accepts unnormalized weights

random roulette selection,
accepts unnormalized weights
sourceraw docstring

stripdownclj/s

(stripdown state)

removes algorithm-specific entries from the state

removes algorithm-specific entries from the state
sourceraw docstring

warmupclj/s

(warmup prog)
(warmup prog value)

runs until the first checkpoint and returns a continuation that starts with that checkpoint

runs until the first checkpoint and returns
a continuation that starts with that checkpoint
sourceraw docstring

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

× close