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
Just to warn for an issue that happened to me, when using "if data" it was giving me an error because my data variable was a np.array. The issue was in line 140 of the pybasicbayes/pybasicbayes/distributions/multinomial.py file.
In my case, I corrected the issue in a simple way (probably not the best)":
before -> data = data if data else [None]_len(weights)
after -> data = data if list(data) else [None]_len(weights)
If you could resolve this issue, it would be beneficial for the other users.
Best Regards,
jmgo
The text was updated successfully, but these errors were encountered:
Hi!
Just to warn for an issue that happened to me, when using "if data" it was giving me an error because my data variable was a np.array. The issue was in line 140 of the pybasicbayes/pybasicbayes/distributions/multinomial.py file.
In my case, I corrected the issue in a simple way (probably not the best)":
before -> data = data if data else [None]_len(weights)
after -> data = data if list(data) else [None]_len(weights)
If you could resolve this issue, it would be beneficial for the other users.
Best Regards,
jmgo
The text was updated successfully, but these errors were encountered: