Description Usage Arguments Value See Also Examples
View source: R/hdp_addconparam.R
Add concentration parameters to a hdpState object by specifying the shape and
rate parameters of the gamma prior/s. DPs using these new concentration parameters
can be added with hdp_adddp
. Data is assigned via hdp_setdata
.
When initialised, the DP nodes are 'heldout' (not available for posterior sampling)
and will need to be activated (see dp_activate
). Finally, the posterior
sampling process (a Gibbs sampler) is run via hdp_posterior
.
1 | hdp_addconparam(hdp, alphaa, alphab)
|
hdp |
A hdpState object |
alphaa |
Shape hyperparameters for the gamma priors over the DP concentration parameters. |
alphab |
Rate hyperparameters for the gamma priors over the DP concentration parameters. |
A hdpState object updated with the new concentration parameters. See hdpState-class
hdp_init
, hdp_adddp
, hdp_setdata
,
dp_activate
, hdp_posterior
1 2 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.