k-Armed Bandit 1.0.0
A collection of k-armed bandits and assoicated agents for reinforcement learning
|
Tests the implementation of a bandit with random walk on the distributions. More...
Public Member Functions | |
test_mean_change (self) | |
Test that means change over time. | |
Tests the implementation of a bandit with random walk on the distributions.
As this class inherits from Normal, the only difference is testing that the distribution means change after each call to select.
Definition at line 6 of file test_random.py.
bandit.tests.test_random.TestRandomWalkBandit.test_mean_change | ( | self | ) |
Test that means change over time.
The class should randomly walk the mean of the distribution of each arm after a call to select. So call it a number of times and watch for some sort of change. Because it is random, the exact change can't be known, so just ensure that the numbers do in fact change.
Definition at line 14 of file test_random.py.