Learn R Programming

CRF (version 0.3-6)

decode.tree: Decoding method for tree- and forest-structured graphs

Description

Computing the most likely configuration for CRF

Usage

decode.tree(crf)

Arguments

crf
The CRF

Value

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

Details

Exact decoding for tree- and forest-structured graphs with max-product belief propagation

Examples

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

Run the code above in your browser using DataLab