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

Posterior probabilities in the form [1.] #15

Open
yleniarotalinti opened this issue Jul 9, 2024 · 1 comment
Open

Posterior probabilities in the form [1.] #15

yleniarotalinti opened this issue Jul 9, 2024 · 1 comment

Comments

@yleniarotalinti
Copy link

I got an error in the model.predict(x_test) method.

If any posterior probability in x_train is in the form [1.], they the function will through an error indicating that the index is out of bound as it cannot access the second element of the array (as 0 is not there).

I would suggest to handle this type of situation by simple adding a 0 (or a 1) as second element of the array.

@remykarem
Copy link
Owner

remykarem commented Aug 15, 2024 via email

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

2 participants