k-Armed Bandit 1.0.0
A collection of k-armed bandits and assoicated agents for reinforcement learning
|
Tests the methods for a normal distribution bandit. More...
Public Member Functions | |
test_distribution_generation (self) | |
Ensure that arm distributions have means on the range [-1, 1) and standard deviations of 1. | |
test_reward_selection (self) | |
Test that rewards of the correct shape are produced. | |
Tests the methods for a normal distribution bandit.
Definition at line 5 of file test_normal.py.
bandit.tests.test_normal.TestNormalBandit.test_distribution_generation | ( | self | ) |
Ensure that arm distributions have means on the range [-1, 1) and standard deviations of 1.
Definition at line 10 of file test_normal.py.
bandit.tests.test_normal.TestNormalBandit.test_reward_selection | ( | self | ) |
Test that rewards of the correct shape are produced.
Since any numeric value is technically possible, only check that the right number of rewards are returned.
Definition at line 31 of file test_normal.py.