Learn R Programming

CRF (version 0.3-6)

decode.sample: Decoding method using sampling

Description

Computing the most likely configuration for CRF

Usage

decode.sample(crf, sample.method, ...)

Arguments

crf
The CRF
sample.method
The sampling method
...
The parameters for sample.method

Value

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

Details

Approximate decoding using sampling (takes a sampling method as input)

Examples

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

Run the code above in your browser using DataLab