Attend the Women in ML Symposium on December 7 Register now

Module: tfdf.py_tree.node

Stay organized with collections Save and categorize content based on your preferences.

Nodes (leaf and non-leafs) in a tree.


class AbstractCondition: Generic condition.

class AbstractNode: A decision tree node.

class AbstractValue: A generic value/prediction/output.

class ConditionValueAndDefaultEvaluation: Set of condition values and default evaluations per features.

class LeafNode: A leaf node i.e. the node containing a prediction/value/output.

class NonLeafNode: A non-leaf node i.e.

class defaultdict: defaultdict(default_factory=None, /, [...]) --> dict with default factory


core_node_to_node(...): Converts a core node (proto format) into a python node.

node_to_core_node(...): Converts a python node into a core node (proto format).