decode.ilp: Decoding method using integer linear programming

Description Usage Arguments Details Value Examples

View source: R/decode.R

Description

Computing the most likely configuration for CRF

Usage

1
decode.ilp(crf, lp.rounding = FALSE)

Arguments

crf

The CRF

lp.rounding

Boolean variable to indicate whether LP rounding is need.

Details

Exact decoding with an integer linear programming formulation and approximate using LP relaxation

Value

This function will return the most likely configuration, which is a vector of length crf$n.nodes.

Examples

1
2
3
4
5
6
## Not run: 
library(CRF)
data(Small)
d <- decode.ilp(Small$crf)

## End(Not run)

CRF documentation built on Dec. 1, 2019, 3:02 a.m.