HLearn-algebra-1.1.0.1: Algebraic foundation for homomorphic learning

Safe HaskellNone

HLearn.Algebra.Models.CoHomTrainer

Synopsis

Documentation

class CoHomTrainer model whereSource

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

Associated Types

type CoDatapoint model Source

Methods

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