gapsRun
calls the C++ MCMC code and performs Bayesian
matrix factorization returning the two matrices that reconstruct
the data matrixgapsRun
calls the C++ MCMC code and performs Bayesian
matrix factorization returning the two matrices that reconstruct
the data matrixgapsRun(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", sampleSnapshots = "TRUE", numSnapshots = 100,
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 <- 5000
results <- gapsRun(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