contextualbandits icon indicating copy to clipboard operation
contextualbandits copied to clipboard

Update utils.py

Open vipulsmishra opened this issue 1 year ago • 1 comments

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 _robust_predict method, it is working fine.

vipulsmishra avatar Jul 12 '22 10:07 vipulsmishra

Thanks for the PR, but this doesn't really address the underlying problem, since all of the other classes that take arbitrary classifiers still use unbound methods.

If you want to save models you need to use some serialization library that would support this, such as dill and similar.

david-cortes avatar Jul 12 '22 16:07 david-cortes