Calculate the sufficient statistics of MRF model
mrf.stat(crf, instances)
The CRF
The training data matrix of MRF model
This function will return the value of MRF sufficient statistics.
This function calculates the sufficient statistics of MRF model. This function
much be called before the first calling to mrf.nll
.
In the training data matrix instances
, each row is an instance and
each column corresponds a node in CRF.