summary.DPMMclust {NPflow} | R Documentation |
Summarizing Dirichlet Process Mixture Models
Description
Summary methods for DPMMclust
objects.
Usage
## S3 method for class 'DPMMclust'
summary(
object,
burnin = 0,
thin = 1,
gs = NULL,
lossFn = "Binder",
posterior_approx = FALSE,
...
)
Arguments
object |
a |
burnin |
integer giving the number of MCMC iterations to burn (defaults is half) |
thin |
integer giving the spacing at which MCMC iterations are kept.
Default is |
gs |
optional vector of length |
lossFn |
character string specifying the loss function to be used. Either "F-measure" or "Binder" (see Details). Default is "Binder". |
posterior_approx |
logical flag whether a parametric approximation of the posterior should be
computed. Default is |
... |
further arguments passed to or from other methods |
Details
The cost of a point estimate partition is calculated using either a pairwise coincidence loss function (Binder), or 1-Fmeasure (F-measure).
The number of retained sampled partitions is m = (N - burnin)/thin
Value
a list
containing the following elements:
nb_mcmcit
:an integer giving the value of
m
, the number of retained sampled partitions, i.e.(N - burnin)/thin
burnin
:an integer passing along the
burnin
argumentthin
:an integer passing along the
thin
argumentlossFn
:a character string passing along the
lossFn
argumentclust_distrib
:a character string passing along the
clust_distrib
argumentpoint_estim
:a
list
containing:c_est
:a vector of length
n
containing the point estimated clustering for each observationscost
:a vector of length
m
containing the cost of each sampled partitionFmeas
:if
lossFn
is'F-measure'
, them x m
matrix of total F-measures for each pair of sampled partitionsopt_ind
:the index of the point estimate partition among the
m
sampled
loss
:the loss for the point estimate.
NA
iflossFn
is not'Binder'
param_posterior
:a list containing the parametric approximation of the posterior, suitable to be plugged in as prior for a new MCMC algorithm run
mcmc_partitions
:a list containing the
m
sampled partitionsalpha
:a vector of length
m
with the values of thealpha
DP parameterindex_estim
:the index of the point estimate partition among the
m
sampledhyperG0
:a list passing along the prior, i.e. the
hyperG0
argumentlogposterior_list
:a list of length
m
containing the logposterior and its decomposition, for each sampled partitionU_SS_list
:a list of length
m
containing the containing the lists of sufficient statistics for all the mixture components, for each sampled partitiondata
:a
d x n
matrix containing the clustered data
Author(s)
Boris Hejblum