gapsTestRun
calls the C++ MCMC code and performs Bayesian
matrix factorization returning the two matrices that reconstruct
the data matrix. Test procedures allow for the returning of the matrix
and atomic information for A and P during each step of the equilibration and sampling. .gapsTestRun
calls the C++ MCMC code and performs Bayesian
matrix factorization returning the two matrices that reconstruct
the data matrix. Test procedures allow for the returning of the matrix
and atomic information for A and P during each step of the equilibration and sampling.gapsTestRun(D, S, ABins = data.frame(), PBins = data.frame(), nFactor = 7,
simulation_id = "simulation", nEquil = 1000, nSample = 1000,
nOutR = 1000, output_atomic = "FALSE", fixedBinProbs = "FALSE",
fixedDomain = "N", alphaA = 0.01, nMaxA = 1e+05, max_gibbmass_paraA = 100,
alphaP = 0.01, nMaxP = 1e+05, max_gibbmass_paraP = 100)
CoGAPS
## Load data
data('SimpSim')
## Run GAPS matrix decomposition
nIter <- 10
results <- gapsTestRun(SimpSim.D, SimpSim.S, nFactor=3,
nEquil=nIter, nSample=nIter)
## Plot the results
plotGAPS(results$Amean, results$Pmean, 'GSFigs')
Run the code above in your browser using DataLab