towhee.hub.builtin.operators.sklearn.logistic_regression

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

Bases: StatefulOperator

Logistic Regression model encapsulate as an Operator.

Methods

feed

fit

predict

set_state

set_training

Attributes

flag

key

metainfo

shared_type

__call__(*args, **kws)

The framework calls __call__ function repeatedly for every input data.

Args:

Returns:

Raises:

An exception during __init__ can terminate the graph run.

__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.