|
fill(self,
keys,
value=0.0)
Fills in any missing slots with a default value |
source code
|
|
|
|
|
|
boolean
|
|
ProbabilityTree[]
|
|
|
|
a new DecisionTree instance
|
_merge(self,
other,
op,
comparisons=None,
conditions=[ ] )
Helper method that merges the two trees together using the given
operator to combine leaf values, without pruning |
source code
|
|
|
|
|
marginalize(self,
key)
Marginalizes any distributions to remove the given key (not in place!
returns the new tree) |
source code
|
|
|
|
|
|
|
|
|
|
str
|
simpleText(self,
printLeaves=True,
numbers=True,
all=False)
Returns a more readable string version of this tree |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
parse(self,
element,
valueClass=None,
debug=False)
Extracts the tree from the given XML element |
source code
|
|
Inherited from KeyedTree.KeyedTree :
getKeys ,
pruneIdentities ,
scale ,
toNumeric
Inherited from matrices.DecisionTree :
__add__ ,
__copy__ ,
__eq__ ,
__hash__ ,
__init__ ,
__mul__ ,
__neg__ ,
__sub__ ,
branches ,
count ,
createIndex ,
depth ,
fromRules ,
getPath ,
getValue ,
isLeaf ,
leafNodes ,
leaves ,
makeLeaf ,
makeRules ,
merge ,
rebalance ,
removeTautologies ,
replace
|