package
0.0.0-20220328191113-6b453b27fa81
Repository: https://github.com/craigkelly/grample.git
Documentation: pkg.go.dev
# Functions
HellingerDiff returns the Hellinger error between the model's current marginal estimate and this solution.
JSDivergence returns the Jensen-Shannon divergence, which is a symmetric gneralization of the KL divergence.
MaxAbsDiff returns the maximum difference found between the two prob dists.
MeanAbsDiff returns the mean of the differenced found between the two prob dists.
NewErrorSuite returns an ErrorSuite with all calculated error functions.
NewFieldReader constructs a new field reader around the given data.
NewFunction creates a function from an index and a list of variables.
NewModelFromBuffer creates a model from the given pre-read data.
NewModelFromFile initializes and creates a model from the specified source.
NewSolutionFromBuffer reads a UAI MAR solution file from the specified buffer.
NewSolutionFromFile reads a UAI MAR solution file.
NewVariable is our standard way to create a variable from an index and a cardinality.
NewVariableIter returns a new iterator over the list of variables.
# Structs
ErrorSuite represents all the loss/error functions we use to judge progress across joint dist.
FieldReader is just a simple reader for basic file formats.
A Function represents a function of Variables (which may be a CPT or a more general factor).
Model represent a PGM.
Solution to a marginal estimation problem specified on a Model.
UAIReader reads the UAI inference data set format.
Variable represents a single node in a PGM, a random variable, or a marginal distribution.
VariableIter is an iterator over all possible values for a list of variables.