|
|
|
reset(self)
Clears all existing contents (including attributes) of the table |
source code
|
|
|
initialize(self)
Clears all existing contents (excluding attributes) of the table |
source code
|
|
int
|
|
|
delAttribute(self,
index)
Deletes the attribute in the given position and reorganizes the rules
accordingly |
source code
|
|
int
|
index(self,
state,
observations={ } )
Returns:
the rule index corresponding to the given beliefs |
source code
|
|
|
__getitem__(self,
index)
Shortcut method, index is either an int (for directly indexing into
the table) or a belief vector. |
source code
|
|
int
|
subIndex(self,
attr,
value)
Computes the index corresponding to the given value for the given
attribute |
source code
|
|
bool
|
consistentp(self,
assignment,
subIndex)
Tests whether extending a partial LHS assignment with a given
subIndex is self-consistent |
source code
|
|
int[]
|
|
int[]
|
|
int[]
|
|
|
|
PWLTable
|
|
|
_consistent(self,
attr1,
great1,
attr2,
great2=None,
debug=False)
Compares an attribute-value pair against another (or others) to
determine whether they're potentially consistent |
source code
|
|
|
prune(self,
rulesOnly=False,
debug=False)
Removes rows and attributes that are irrelevant |
source code
|
|
|
|
|
pruneAttributes(self,
rulesOnly=False,
debug=False)
Prune irrelevant attributes |
source code
|
|
PWLTable
|
max(self,
debug=False)
Computes the rules based on maximizing the values in this table |
source code
|
|
PWLTable
|
star(self)
Computes the optimal value function, independent of action |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
mergeZero(self,
other,
combiner=None,
projector=None,
debug=False)
Merging when both tables have all of their hyperplanes going through
the origin |
source code
|
|
int[]
|
mapIndex(self,
other,
factors,
result=None,
multiplicand=None,
debug=False)
Translates an index in another table into one for this table |
source code
|
|
|
|
str
|
_ruleString(self)
Helper method that returns a string representation of the rules |
source code
|
|
str
|
valueString(self)
Helper method that returns string representation of value function |
source code
|
|
str
|
|
|
|