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

problem with generating posterior preditions #70

Open
dokato opened this issue Dec 5, 2020 · 0 comments
Open

problem with generating posterior preditions #70

dokato opened this issue Dec 5, 2020 · 0 comments

Comments

@dokato
Copy link

dokato commented Dec 5, 2020

I had trouble running hddm.utils.post_pred_gen on my data.

I got:

    942 
    943         if len(data_nodes) != 1:
--> 944             raise NotImplementedError("Supply a grouping so that at most 1 observed node codes for each group.")
    945 
    946         return data_nodes[0]

NotImplementedError: Supply a grouping so that at most 1 observed node codes for each group.

The intermediate solution is to reset indices of the input data if you filter out some trials.

data.reset_index(inplace = True, drop = True)
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