Learn R Programming

CRF (version 0.3-8)

decode.marginal: Decoding method using inference

Description

Computing the most likely configuration for CRF

Usage

decode.marginal(crf, infer.method, ...)

Arguments

crf
The CRF
infer.method
The inference method
...
The parameters for infer.method

Value

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

Details

Approximate decoding using inference (takes an inference method as input)

Examples

Run this code
library(CRF)
data(Small)
d <- decode.marginal(Small$crf, infer.exact)

Run the code above in your browser using DataLab