beechung / Latent-Factor-Models

R functions for fitting latent factor models with internal computation in C/C++
BSD 3-Clause "New" or "Revised" License
123 stars 61 forks source link

test.data=null fails #6

Closed zhangl861 closed 12 years ago

zhangl861 commented 12 years ago

ans = fit.bst(obs.train=obs.train, x.obs.train=x.obs.train, x_src=x_src, x_dst=x_dst, x_ctx=x_ctx,out.dir = "/tmp/unit-test/simulated-mtx-uvw-10K", model.name="uvw", nFactors=3, nIter=10);

WARNING: You did not specify the following components in factor: gamma

WARNING: You did not specify the following components in param: h0, var_gamma

================= START fit.MCEM ===================================== Initial loglik: CD = -19358.42494, E = NA (0.01 sec) Error in data.frame(Method = "MCEM", Iter = iter, nSteps = nSamples, CDlogL = loglik, : arguments imply differing number of rows: 1, 0

beechung commented 12 years ago

Resolved in commit 77a115ff88418e2bff3e770b83f7bff4d20e1bf3

FunData7 commented 9 years ago

I get the same error with very last commit. How to deal with that? Could you please help? Thanks a lot!