infer.cutset {CRF} | R Documentation |

## Inference method for graphs with a small cutset

### Description

Computing the partition function and marginal probabilities

### Usage

```
infer.cutset(crf, cutset, engine = "default")
```

### 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". |

### Details

Exact inference for graphs with a small cutset using cutset conditioning

### Value

This function will return a list with components:

`node.bel` |
Node belief. It is a matrix with |

`edge.bel` |
Edge belief. It is a list of matrices. The size of list is |

`logZ` |
The logarithmic value of CRF normalization factor Z. |

### Examples

```
library(CRF)
data(Small)
i <- infer.cutset(Small$crf, c(2))
```

[Package

*CRF*version 0.4-3 Index]