crf-chain2-generic-0.3.0: Second-order, generic, constrained, linear conditional random fields

Safe HaskellNone

Data.CRF.Chain2.Generic.Inference

Synopsis

Documentation

tag :: FeatMap m f => Model m o t f -> Xs o t -> [t]Source

probs :: FeatMap m f => Model m o t f -> Xs o t -> [[LogFloat]]Source

marginals :: FeatMap m f => Model m o t f -> Xs o t -> [[LogFloat]]Source

expectedFeatures :: FeatMap m f => Model m o t f -> Xs o t -> [(f, LogFloat)]Source

accuracy :: (Eq t, FeatMap m f) => Model m o t f -> [(Xs o t, Ys t)] -> DoubleSource

Compute the accuracy of the model with respect to the labeled dataset.

zx :: FeatMap m f => Model m o t f -> Xs o t -> LogFloatSource

zx' :: FeatMap m f => Model m o t f -> Xs o t -> LogFloatSource