GFAsample: Generate data from CCA/BIBFA/GFA model

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Generate data from a CCA/BIBFA/GFA model that has been learned with GFA. The most likely use of this function is for model checking.

Usage

1
2
CCAsample(model, N)
GFAsample(model, N)

Arguments

model

A list of model parameters as returned by GFA.

N

How many samples to draw.

Details

The code randomly samples Z from the prior and then draws N observations for both views.

Value

Y

The data, a list of N times D[m] matrices.

Z

The latent variables, a N times K matrix.

Author(s)

Seppo Virtanen and Arto Klami

See Also

GFA,CCA

Examples

1
2
3
4
5
6
7
  #
  # Assume we have a variable model which has been learned with
  # GFAexperiment() or GFA().
  # Then the following line would draw 100 samples from it:
  #
  # Y2 <- GFAsample(model,100)
  #

Example output



CCAGFA documentation built on May 2, 2019, 12:36 p.m.