powered by
Computing the most likely configuration for CRF
decode.cutset( crf, cutset, engine = "default", start = apply(crf$node.pot, 1, which.max) )
The CRF
A vector of nodes in the cutset
The underlying engine for cutset decoding, possible values are "default", "none", "exact", "chain", and "tree".
An initial configuration, a good start will significantly reduce the seraching time
This function will return the most likely configuration, which is a vector of length crf$n.nodes.
crf$n.nodes
Exact decoding for graphs with a small cutset using cutset conditioning
# NOT RUN { library(CRF) data(Small) d <- decode.cutset(Small$crf, c(2)) # }
Run the code above in your browser using DataLab