Learn R Programming

CRF (version 0.3-8)

decode.trbp: Decoding method using tree-reweighted belief propagation

Description

Computing the most likely configuration for CRF

Usage

decode.trbp(crf, max.iter = 10000, cutoff = 1e-04, verbose = 0)

Arguments

crf
The CRF
max.iter
The maximum allowed iterations of termination criteria
cutoff
The convergence cutoff of termination criteria
verbose
Non-negative integer to control the tracing informtion in algorithm

Value

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

Details

Approximate decoding using max-product tree-reweighted belief propagtion

Examples

Run this code
library(CRF)
data(Small)
d <- decode.trbp(Small$crf)

Run the code above in your browser using DataLab