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

Code doesn't run #1

Open
lauken13 opened this issue Jul 30, 2018 · 0 comments
Open

Code doesn't run #1

lauken13 opened this issue Jul 30, 2018 · 0 comments

Comments

@lauken13
Copy link
Collaborator

Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) :
Exception: model98c127c1de2_hier_NB_regression_namespace::model98c127c1de2_hier_NB_regression: building_idx[k0__] is 37, but must be less than or equal to 10 (in 'model98c127c1de2_hier_NB_regression' at line 18)

failed to create the sampler; sampling not done

Looks like building ID (line 160) is being used as an index in model but building ID is actually levels of 5 13 26 37 45 47 62 70 93 98. A fix is to assign building_id <- as.numeric(as.factor(building_id)), but haven't incase there's updates pending.

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