decode.junction function

Decoding method for low-treewidth graphs

Decoding method for low-treewidth graphs

Computing the most likely configuration for CRF

decode.junction(crf)

Arguments

  • crf: The CRF

Returns

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

Details

Exact decoding for low-treewidth graphs using junction trees

Examples

library(CRF) data(Small) d <- decode.junction(Small$crf)
  • Maintainer: Ling-Yun Wu
  • License: GPL (>= 2)
  • Last published: 2019-12-01