Idris2Doc : Control.Monad.Bayes.Traced.Static

Control.Monad.Bayes.Traced.Static

(source)

Reexports

import public Data.Vect

Definitions

record Traced : (Type -> Type) -> Type -> Type
  A tracing monad where only a subset of random choices are traced.
The random choices that are not to be traced should be lifted from the transformed monad.

Totality: total
Visibility: public export
Constructor: 
MkTraced : Weighted (FreeSampler m) a -> m (Trace a) -> Traced m a

Projections:
.model : Traced m a -> Weighted (FreeSampler m) a
.traceDist : Traced m a -> m (Trace a)

Hints:
Monad m => Applicative (Traced m)
Monad m => Functor (Traced m)
Monad m => Monad (Traced m)
MonadCond m => MonadCond (Traced m)
MonadInfer m => MonadInfer (Traced m)
MonadSample m => MonadSample (Traced m)
MonadTrans Traced
.model : Traced m a -> Weighted (FreeSampler m) a
Visibility: public export
model : Traced m a -> Weighted (FreeSampler m) a
Visibility: public export
.traceDist : Traced m a -> m (Trace a)
Visibility: public export
traceDist : Traced m a -> m (Trace a)
Visibility: public export
hoistT : (m x -> m x) -> Traced m a -> Traced m a
Visibility: export
marginal : Monad m => Traced m a -> m a
  Discard the trace and supporting infrastructure.

Visibility: export
mhStep : MonadSample m => Traced m a -> Traced m a
  A single step of the Trace Metropolis-Hastings algorithm.

Visibility: public export
mh : MonadSample m => (n : Nat) -> Traced m a -> m (Vect (S n) a)
  Full run of the Trace Metropolis-Hastings algorithm with a specified
number of steps. Newest samples are at the head of the list.

Visibility: public export