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

Make predict function work for mixed logit with 1 draw #34

Open
timothyb0912 opened this issue Jan 19, 2019 · 0 comments
Open

Make predict function work for mixed logit with 1 draw #34

timothyb0912 opened this issue Jan 19, 2019 · 0 comments
Labels

Comments

@timothyb0912
Copy link
Owner

Right now, calling predict when using a mixed logit model with num_draws=1 will cause an error. The following code snippet needs to included right after L1959:

if len(prob_array.shape) == 1:
    return prob_array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant