Link Search Menu Expand Document

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

type - Type of plot

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]}

'Ytrue' - True responses

Data Type: Array


The true responses can be provided to access the the predictive performance of a fitted models.

Example: 'Ytrue',yTest with yTest is a array of test responses.