mrf.stat {CRF} | R Documentation |
Calculate the sufficient statistics of MRF model
mrf.stat(crf, instances)
crf |
The CRF |
instances |
The training data matrix of MRF model |
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.
This function will return the value of MRF sufficient statistics.