Safe Haskell | None |
---|
- class CoHomTrainer model where
- type CoDatapoint model
- cotrain1dp :: model -> Rand g (CoDatapoint model)
- cotrain :: model -> Rand g [CoDatapoint model]
- coadd1dp :: model -> Rand g (CoDatapoint model, model)
- coaddBatch :: model -> Rand g [(CoDatapoint model, model)]
Documentation
class CoHomTrainer model whereSource
A CoHomTrainer is a formal way of describing a generative model.
type CoDatapoint model Source
cotrain1dp :: model -> Rand g (CoDatapoint model)Source
sample with replacement a single datapoint
cotrain :: model -> Rand g [CoDatapoint model]Source
samples infinitely many datapoints with replacement
coadd1dp :: model -> Rand g (CoDatapoint model, model)Source
sample without replacement a single datapoint
coaddBatch :: model -> Rand g [(CoDatapoint model, model)]Source
sample without replacement as many datapoints as possible