powered by
Computing the most likely configuration for CRF
decode.marginal(crf, infer.method, ...)
The CRF
The inference method
The parameters for infer.method
infer.method
This function will return the most likely configuration, which is a vector of length crf$n.nodes.
crf$n.nodes
Approximate decoding using inference (takes an inference method as input)
# NOT RUN { library(CRF) data(Small) d <- decode.marginal(Small$crf, infer.exact) # }
Run the code above in your browser using DataLab