dp_freeze: Freeze DP nodes

Description Usage Arguments Value See Also

View source: R/dp_freeze.R

Description

Freezes previously active DP nodes. A frozen DP node is not included in posterior sampling, but its statistics are considered in the sampling of other active DPs. This is useful for conditioning on a previous dataset. First, set up a HDP for one dataset, run the posterior sampling chain, and then freeze all old nodes (except the top DP). Add new DP nodes with new data and run a second posterior sampling chain over the new nodes (given the information in the frozen nodes).

Usage

1
dp_freeze(hdp, dpindex)

Arguments

hdp

A hdpState object

dpindex

Indices of the DPs to freeze

Value

A hdpState object with the specified DP nodes frozen. See hdpState-class

See Also

hdp_init, hdp_addconparam, hdp_adddp, hdp_setdata, dp_activate, hdp_posterior


nicolaroberts/hdp documentation built on May 23, 2019, 5:09 p.m.