tests.test_agents package

Submodules

tests.test_agents.test_double_q_learner module

class TestDoubleQLearner(methodName='runTest')[source]

Bases: TestTD

Test the DoubleQLearner class.

setUp() None[source]

Set up the test class.

test_fit()[source]

Test the fit method.

test_step()[source]

Test the step method.

test_update_q_values()[source]

Test the update_q_values method.

tests.test_agents.test_q_learner module

class TestQLearningAgent(methodName='runTest')[source]

Bases: TestTD

Test the QLearningAgent class.

setUp() None[source]

Set up the test class.

test_fit()[source]

Test the fit method.

test_step()[source]

Test the step method.

test_update_q_values()[source]

Test the update_q_values method.

tests.test_agents.test_sarsa module

class TestSarsa(methodName='runTest')[source]

Bases: TestTD

Test the SarsaAgent class.

setUp() None[source]

Set up the test class.

test_fit()[source]

Test the fit method.

test_step()[source]

Test the step method.

test_update_q_values()[source]

Test the update_q_values method.

tests.test_agents.test_sarsa_lambda module

class TestSarsaLambda(methodName='runTest')[source]

Bases: TestTD

Test the SarsaLambda class.

setUp() None[source]

Set up the test class.

test_update_q_values()[source]

Test the update_q_values method.

tests.test_agents.test_td module

class TestTD(methodName='runTest')[source]

Bases: TestCase

Test the TD class.

dh = None
setUp() None[source]

Set up the test class.

classmethod setUpClass() None[source]

Set up the test class.

tearDown() None[source]

Tear down the test class.

test_convert_to_string()[source]

Test the convert_to_string method.

test_create_tables()[source]

Test the create_tables method.

test_epsilon_greedy_policy()[source]

Test the epsilon_greedy_policy method.

test_fit()[source]

Implemented in tests for subclasses.

test_init_q_table()[source]

Test the init_q_table method.

test_step()[source]

Implemented in tests for subclasses.

test_uncertainty_informed_policy()[source]

Test the uncertainty_informed_policy method.

test_update_q_values()[source]

Implemented in tests for subclasses.

Module contents