You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
On Tue, 9 Jul 2024 at 7:18 PM, yleniarotalinti ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#15>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUDL4ZX5PHYCXDNKW25AKTZLPBJRAVCNFSM6AAAAABKSUW35KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TOOJSGQZTIMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
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.
The text was updated successfully, but these errors were encountered: