k-Armed Bandit 1.0.0
A collection of k-armed bandits and assoicated agents for reinforcement learning
|
Tests the base class that all bandits rely on. More...
Public Member Functions | |
test_instantiate_k (self) | |
Test that the bandit properly sets the number of arms. | |
Tests the base class that all bandits rely on.
Since this is an abstract class, it uses a simple inheriting class to allow testing of the defined functionality.
Definition at line 25 of file test_base_bandit.py.
bandit.tests.test_base_bandit.TestBaseBandit.test_instantiate_k | ( | self | ) |
Test that the bandit properly sets the number of arms.
Any positive integer is permitted and everything else is rejected. This mimics real life where you can't have a non-natural number of arms. Zero is explicitly excluded, since it makes the object trivial.
Definition at line 32 of file test_base_bandit.py.