Description Usage Arguments Details Value Examples
Computing the partition function and marginal probabilities
1 | infer.sample(crf, sample.method, ...)
|
crf |
The CRF |
sample.method |
The sampling method |
... |
The parameters for |
Approximate inference using sampling (takes a sampling method as input)
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. |
1 2 3 | library(CRF)
data(Small)
i <- infer.sample(Small$crf, sample.exact, 10000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.