infer.exact {CRF} | R Documentation |
Computing the partition function and marginal probabilities
infer.exact(crf)
crf |
The CRF |
Exact inference for small graphs with brute-force counting
This function will return a list with components:
node.bel |
Node belief. It is a matrix with |
edge.bel |
Edge belief. It is a list of matrices. The size of list is |
logZ |
The logarithmic value of CRF normalization factor Z. |
library(CRF)
data(Small)
i <- infer.exact(Small$crf)