slots
slots copied to clipboard
A multi-armed bandit library for Python
Options: - Refactor type hints for 3.5 compatibility - Remove 3.5 support
We need tests! - I am planning to use [pytest](http://pytest.org). - Asymptotic tests would be nice for the MAB strategies.
`slots.py:377: RuntimeWarning: invalid value encountered in true_divide sum(self.pulls) * np.max(np.nan_to_num(self.wins / self.pulls))`
multiple_trials - iterates over an array and uses online trial for each pair of bandits/payouts multiple_trials_bulk - sums up array of payouts to update choices, payouts without iterating est_payouts -...