k-Armed Bandit 1.0.0
A collection of k-armed bandits and assoicated agents for reinforcement learning
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bandit.tests.test_random.TestRandomWalkBandit Class Reference

Tests the implementation of a bandit with random walk on the distributions. More...

Inheritance diagram for bandit.tests.test_random.TestRandomWalkBandit:

Public Member Functions

 test_mean_change (self)
 Test that means change over time.
 

Detailed Description

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.

Member Function Documentation

◆ test_mean_change()

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.


The documentation for this class was generated from the following file: