Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting issue in multicontext function #17

Open
prismyoo1231 opened this issue Oct 3, 2022 · 0 comments
Open

setting issue in multicontext function #17

prismyoo1231 opened this issue Oct 3, 2022 · 0 comments

Comments

@prismyoo1231
Copy link

Hello,
I'm currently studying localized latent factor models and I'm trying to run the code.
I prepared the data according to the manual and tried to run the multicontext function, but an error occurred.

This is my setting and code.

setting = data.frame(
  name = 'uvw3-F',
  has.u = FALSE,
  has.gamma = FALSE,
  nFactors = 33,
  nLocalFactors = 3,
  is.logistic = FALSE
)

ans = run.multicontext(
              data.train = data.train, data.test=data.test,
              setting = setting,
              nSamples = 200,
              nBurnIn = 30,
              nIter = 30,
              out.dir="multi_results/");

max(obs$edge.context) is 11. So, I set the nLocalFactors = 3 and nFactors = 3*11 = 33.
But, The following error occurs

Error in run.multicontext(data.train = data.train, data.test = data.test,  : 
  Please check input parameter 'setting' when calling function run.multicontext: setting$nFactors must = setting$nLocalFactors * max(obs$edge.context).

Am I misunderstanding the setting? I'd appreciate it if you could tell me what the problem is.

Thank you for providing good research and code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant