decode.cutset: Decoding method for graphs with a small cutset

Description Usage Arguments Details Value Examples

View source: R/decode.R

Description

Computing the most likely configuration for CRF

Usage

1
2
3
4
5
6
decode.cutset(
  crf,
  cutset,
  engine = "default",
  start = apply(crf$node.pot, 1, which.max)
)

Arguments

crf

The CRF

cutset

A vector of nodes in the cutset

engine

The underlying engine for cutset decoding, possible values are "default", "none", "exact", "chain", and "tree".

start

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

Details

Exact decoding for graphs with a small cutset using cutset conditioning

Value

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

Examples

1
2
3

CRF documentation built on Dec. 1, 2019, 3:02 a.m.