towhee.hub.builtin.operators.sklearn.decision_tree

class towhee.hub.builtin.operators.sklearn.decision_tree(name: Optional[str] = None, **kws)[source]

Bases: towhee.operator.stateful_operator.StatefulOperator

Decision Tree Classifier model encapsulate as an Operator.

Methods

feed

fit

predict

set_state

set_training

Attributes

flag

key

metainfo

shared_type

__init__(name: Optional[str] = None, **kws)[source]

Init operator, before a graph starts, the framework will call Operator __init__ function.

Args:

Raises:

An exception during __init__ can terminate the graph run.