contextualbandits icon indicating copy to clipboard operation
contextualbandits copied to clipboard

Python implementations of contextual bandits algorithms

Results 3 contextualbandits issues
Sort by recently updated
recently updated
newest added

Added _robust_predict method in _LinUCB_n_TS_single class. It was showing error when saving the model instance of LinUCB class (which uses _LinUCB_n_TS_single class as the base model). Now, after adding the...

Is it possible to get probabilities and topN arms in other methods like DoublyRobust and OffsetTree apart from Bootstrapped TS

In the following line https://github.com/david-cortes/contextualbandits/blob/7b87efe31ffefdbc95a125d557920ab5b13105c5/contextualbandits/utils.py#L912C13-L912C34 if we replace arms_w_rew = (r > 0.) with arms_w_rew = (r != 0.) then "BootstrappedUCB" and "BootstrappedTS" could work and incorporate negative rewards (I...