Package teamwork :: Package test :: Package math :: Module testFitting :: Class TestFitting
[hide private]
[frames] | no frames]

Class TestFitting

source code

unittest.TestCase --+
                    |
                   TestFitting

Instance Methods [hide private]
 
setUp(self)
Creates the instantiated scenario used for testing
source code
 
generateFirstState(self) source code
 
generateNextState(self, state) source code
 
generateLoop(self, cmd) source code
 
verifyDynamics(self, state, tree, action)
Verifies that the given dynamics tree
source code
 
checkState(self, state)
Verifies that the state vector is the same as the real state
source code
 
DONTtestGetKeys(self) source code
 
testExpandPolicy(self)
Tests the expansion of an entity's lookup policy tree
source code
 
verifyPolicyEffect(self, entity, state, policy)
Verifies the PWL policy in the given state
source code
 
testGetLookahead(self)
Tests the decision-tree compilation of the lookahead delta
source code
 
verifyLookahead(self, state, tree, action, length) source code
 
testValueTree(self)
Tests the expected value decision tree
source code
 
verifyValue(self, state, tree, action)
Verifies the PWL expected reward calculation in the given state
source code
 
verifyPolicy(self, entity, state, policy)
Verifies the PWL policy in the given state
source code
 
testBuildPolicy(self)
Test compilation of lookahead into decision tree
source code
 
DONTtestFindAll(self)
Tests the fitting procedure
source code
Class Variables [hide private]
  debug = None
  increment = 0.25
Method Details [hide private]

verifyDynamics(self, state, tree, action)

source code 

Verifies that the given dynamics tree

Checks that the result of applying the tree in the given state produces the same result as directly applying the action to the entity (using the performAct method)