|
fill(self,
keys,
value=0.0)
Fills in any missing slots with a default value |
source code
|
|
dict:Key→boolean
|
|
|
freeze(self)
Locks in the dimensions and keys of all leaves |
source code
|
|
|
unfreeze(self)
Unlocks the dimensions and keys of all leaves |
source code
|
|
str
|
simpleText(self,
printLeaves=True,
numbers=True,
all=False)
Returns a more readable string version of this tree |
source code
|
|
|
updateKeys(self)
Updates the record of contained keys in self.keys |
source code
|
|
|
|
|
instantiateKeys(self,
table)
Replaces any key references by the values in the table |
source code
|
|
|
|
|
|
|
scale(self,
factor)
Scales all of the leaf nodes by the given float factor |
source code
|
|
|
getKeys(self)
Returns:
a list of any keys used by at least one branch in this tree |
source code
|
|
str
|
|
int
|
|
|
|
Inherited from matrices.DecisionTree :
__add__ ,
__copy__ ,
__eq__ ,
__hash__ ,
__init__ ,
__mul__ ,
__neg__ ,
__str__ ,
__sub__ ,
__xml__ ,
branch ,
branches ,
children ,
count ,
createIndex ,
depth ,
fromRules ,
generateAlternatives ,
getPath ,
getValue ,
isLeaf ,
leafNodes ,
leaves ,
makeLeaf ,
makeRules ,
merge ,
parse ,
prune ,
rebalance ,
removeTautologies ,
replace
|