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