decode.rbp {CRF} | R Documentation |
Computing the most likely configuration for CRF
decode.rbp(crf, max.iter = 10000, cutoff = 1e-04, verbose = 0)
crf |
The CRF |
max.iter |
The maximum allowed iterations of termination criteria |
cutoff |
The convergence cutoff of termination criteria |
verbose |
Non-negative integer to control the tracing informtion in algorithm |
Approximate decoding using max-product residual belief propagation
This function will return the most likely configuration, which is a vector of length crf$n.nodes
.
library(CRF)
data(Small)
d <- decode.rbp(Small$crf)