from_indicator_matrix#

classmethod FTreeNode.from_indicator_matrix(indicator_matrix: ndarray, root: Node = None) BinTreeNode#

Turn an indicator matrix back into a binary tree.

Parameters#

indicator_matrix

The indicator matrix to turn into a binary tree.

Returns#

BinTreeNode

The root of a binary tree which contains every path from the indicator matrix as a node.