Last chance! 50% off unlimited learning
Sale ends in
Generate sub CRF by selecting some nodes
sub.crf(crf, subset)
The CRF generated by make.crf
The vector of selected node ids
The function will return a new CRF with additional components:
The original CRF data.
The vector of the original node ids for nodes in the new CRF.
The vector of the new node ids for nodes in the original CRF.
The vector of the original edge ids for edges in the new CRF.
The vector of the new edge ids for edges in the original CRF.
The function will generate a new CRF from a given CRF
by selecting some nodes. The vector subset
contains the
node ids selected to generate the new CRF. Unlike
clamp.crf
, the potentials of remainning nodes and edges are
untouched.
# NOT RUN {
library(CRF)
data(Small)
crf <- sub.crf(Small$crf, c(2, 3))
# }
Run the code above in your browser using DataLab