Details
R6 class wrapping a C++ MDGM model. Use mdgm_model() to create instances.
Methods
Method new()
Create a new MdgmModel. Use mdgm_model() instead.
Arguments
ptr
External pointer to a C++ Model object.
Method has_emission()
Check if the model has an emission layer.
Method nvertices()
Get the number of vertices.
Method ncolors()
Get the number of colors (categories).
Method emission_type()
Get the emission family type.
Usage
MdgmModel$emission_type()
Returns
Character string ("bernoulli", "gaussian", "poisson") or
NULL for standalone models.
Method get_ptr()
Get the internal C++ pointer. For internal use only.
Returns
External pointer.