Description Usage Arguments Value See Also
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).
1 | dp_freeze(hdp, dpindex)
|
hdp |
A hdpState object |
dpindex |
Indices of the DPs to freeze |
A hdpState object with the specified DP nodes frozen. See hdpState-class
hdp_init
, hdp_addconparam
, hdp_adddp
,
hdp_setdata
, dp_activate
, hdp_posterior
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.