HLearn-algebra-0.1.2.0: Algebraic foundation for homomorphic learning

Safe HaskellNone

HLearn.Algebra.Models.Lame

Contents

Description

Lame trainers are trainers that are crippled---They are not instances of Semigroup/Monoid, and training their models is not a homomorphism. This means we can't do any of the cool manipulations automatically that we can do with the HomTrainer class.

Synopsis

Classes

class Model modelparams model => LameTrainer modelparams datapoint model whereSource

Methods

lame_train :: (Functor container, FunctorConstraint container model, FunctorConstraint container datapoint, Foldable container, FoldableConstraint container model, Sizable container) => modelparams -> container datapoint -> modelSource

class Model modelparams model => LameTrainerOnline modelparams datapoint model whereSource

Methods

lame_add1dp :: model -> datapoint -> modelSource

class Sizable t whereSource

Methods

size :: t a -> IntSource

Instances

Sizable []