Learn R Programming

CRF (version 0.4-3)

decode.icm: Decoding method using iterated conditional modes algorithm

Description

Computing the most likely configuration for CRF

Usage

decode.icm(crf, restart = 0, start = apply(crf$node.pot, 1, which.max))

Arguments

crf

The CRF

restart

Non-negative integer to control how many restart iterations are repeated

start

An initial configuration, a good start will significantly reduce the seraching time

Value

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

Details

Approximate decoding with the iterated conditional modes algorithm

Examples

Run this code
# NOT RUN {
library(CRF)
data(Small)
d <- decode.icm(Small$crf)

# }

Run the code above in your browser using DataLab