6.7.11.5.2. statsmodels.sandbox.regression.treewalkerclass.getnodes

statsmodels.sandbox.regression.treewalkerclass.getnodes(tree)[source]

walk tree to get list of branches and list of leaves

Parameters:

tree : list of tuples

tree as defined for RU2NMNL

Returns:

branch : list

list of all branch names

leaves : list

list of all leaves names