50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

CCAGFA (version 1.0.8)

GFAsample: Generate data from CCA/BIBFA/GFA model

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

CCAsample(model, N) GFAsample(model, N)

Arguments

model
A list of model parameters as returned by GFA.
N
How many samples to draw.

Value

Y
The data, a list of N times D[m] matrices.
Z
The latent variables, a N times K matrix.

Details

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

See Also

GFA,CCA

Examples

Run this code
  #
  # 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)
  #

Run the code above in your browser using DataLab