Learn R Programming

CRF (version 0.4-3)

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
# NOT RUN {
library(CRF)
data(Small)
d <- decode.sample(Small$crf, sample.exact, 10000)

# }

Run the code above in your browser using DataLab