vbayesPlot method Github code
Plot analytic figures for VBLab fitted models
Syntax
vbayesPlot(type,Name,Value)
Description
vbayesPlot(type,Name,Value)
plots figures defined in type
. Name
and Value
specifie additional options using one or more name-value pair arguments. For example, users can specify the distribution name and parameters for density plots.
Input Arguments
Data type: string
Type of figure to be plotted. Can be specify as:
'Density'
plot a density. The argument'Distribution'
must be specified.'Interval'
plot prediction interval. We the argument'Ytrue'
to specify true responses, if available.'Shrinkage'
plot shrinkage parameters over VB iteration for fitted DeepGLM models.
Name-Value Pair Arguments
Specify optional comma-separated pairs of Name,Value
arguments. Name
is the argument name and Value
is the corresponding value. Name
must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN
.
Example: 'Distribution',{'Normal',[0,0.1]}
specifies that the density to be plotted is a normal distribution with $0$ mean and $0.1$ variance.
'Distribution' - Density distribution to plot
Data Type: String
Distribution of the density to be plotted, specified as one of the following:
Name | Description | Parameters |
---|---|---|
'Normal' | Normal distribution | mean, variance |
'Beta' | Beta distribution | |
'Gamma' | Gamma distribution | |
'Inverse-Gamma' | Inverse-Gamma distribution | |
'Custom' | Custom distribution | array of samples |
Note: Only available for density plot.
Example: 'Distribution',{'Normal',[0,1]}