R: Decoding method using inference

decode.marginal {CRF} | R Documentation

## 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`

### Details

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

### Value

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

### Examples

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

[Package CRF version 0.4-3 Index]