train.mrf {CRF} | R Documentation |
Train the MRF model to estimate the parameters
train.mrf(
crf,
instances,
nll = mrf.nll,
infer.method = infer.chain,
...,
trace = 0
)
crf |
The CRF |
instances |
The training data matrix of CRF model |
nll |
The function to calculate negative log likelihood |
infer.method |
The inference method used to compute the likelihood |
... |
Extra parameters need by the inference method |
trace |
Non-negative integer to control the tracing informtion of the optimization process |
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.
This function will directly modify the CRF and return the same CRF.
mrf.update
, mrf.stat
, mrf.nll
, make.crf