Train the MRF model to estimate the parameters
train.mrf(
crf,
instances,
nll = mrf.nll,
infer.method = infer.chain,
...,
trace = 0
)
The CRF
The training data matrix of CRF model
The function to calculate negative log likelihood
The inference method used to compute the likelihood
Extra parameters need by the inference method
Non-negative integer to control the tracing informtion of the optimization process
This function will directly modify the CRF and return the same CRF.
This function trains the Markov Random Fields (MRF) model, which is a simple variant of CRF model.
In the training data matrix instances
, each row is an instance and
each column corresponds a node in CRF.