powered by
Computing the most likely configuration for CRF
decode.ilp(crf, lp.rounding = FALSE)
The CRF
Boolean variable to indicate whether LP rounding is need.
This function will return the most likely configuration, which is a vector of length crf$n.nodes.
crf$n.nodes
Exact decoding with an integer linear programming formulation and approximate using LP relaxation
# NOT RUN { # } # NOT RUN { library(CRF) data(Small) d <- decode.ilp(Small$crf) # } # NOT RUN { # }
Run the code above in your browser using DataLab