I found an error if beta_prior is set to be "auto" and nchoices is a list when we initialize the online contextual bandits.
Here is the error message:
File "/usr/local/lib/python3.8/dist-packages/contextualbandits/online.py", line 1894, in __init__
beta_prior = ((3./nchoices, 4.), 2)
TypeError: unsupported operand type(s) for /: 'float' and 'list'
The beta prior should be handled depending on the type of nchoices (int or list-like).
I found an error if
beta_prior
is set to be"auto"
andnchoices
is alist
when we initialize the online contextual bandits.Here is the error message:
The
beta prior
should be handled depending on the type ofnchoices
(int
orlist-like
).