Idris2Doc : Control.Monad.Bayes.Weighted

Control.Monad.Bayes.Weighted

(source)
Weighted is an instance of MonadCond. Apply a MonadSample transformer to
obtain a MonadInfer that can execute probabilistic models.

Reexports

importpublic Control.Monad.State
importpublic Numeric.Log

Definitions

recordWeighted : (Type->Type) ->Type->Type
  Execute the program using the prior distribution, while accumulating likelihood.

Totality: total
Visibility: public export
Constructor: 
MkWeighted : StateT (LogDouble) ma->Weightedma

Projection: 
.runWeighted' : Weightedma->StateT (LogDouble) ma

Hints:
Monadm=>Applicative (Weightedm)
Functorm=>Functor (Weightedm)
Monadm=>Monad (Weightedm)
Monadm=>MonadCond (Weightedm)
MonadSamplem=>MonadInfer (Weightedm)
MonadSamplem=>MonadSample (Weightedm)
MonadTransWeighted
.runWeighted' : Weightedma->StateT (LogDouble) ma
Visibility: public export
runWeighted' : Weightedma->StateT (LogDouble) ma
Visibility: public export
runWeighted : Weightedma->m (LogDouble, a)
  Obtain an explicit value of the likelihood for a given value

Visibility: public export
prior : Functorm=>Weightedma->ma
  Compute the sample and discard the weight.
This operation introduces bias.

Visibility: export
extractWeight : Functorm=>Weightedma->m (LogDouble)
  Compute the weight and discard the sample.

Visibility: export
withWeight : Monadm=>m (LogDouble, a) ->Weightedma
  Embed a random variable with explicitly given likelihood

Visibility: export
flatten : Monadm=>Weighted (Weightedm) a->Weightedma
  Combine weights from two different levels.

Visibility: export
applyWeight : MonadCondm=>Weightedma->ma
  Use the weight as a factor in the transformed monad.

Visibility: export
hoist : (mx->nx) ->Weightedma->Weightedna
  Apply a transformation to the transformed monad.

Visibility: export