HLearn-algebra- Algebraic foundation for homomorphic learning

Safe HaskellNone




class CoHomTrainer model whereSource

A CoHomTrainer is a formal way of describing a generative model.

Associated Types

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