You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like a function that permutes the nodes in dataset into a different ordering, e.g.
defpermute_nodes(ds, ordering):
""" Returns a new dataset in which the tree nodes have been permuted according to the specified ordering such that node u in the new dataset will be equivalent to ``ordering[u]``. """
For example, if we wanted to permute the nodes so that they are in preorder (for efficiency in large tree algorithms), we would do
ds_preorder=pk.permute_nodes(ds, pk.preorder(ds))
The text was updated successfully, but these errors were encountered:
We would like a function that permutes the nodes in dataset into a different ordering, e.g.
For example, if we wanted to permute the nodes so that they are in preorder (for efficiency in large tree algorithms), we would do
The text was updated successfully, but these errors were encountered: