Code
from _api_doc_utils import *Online-style follow-the-regularized-leader classifier
Group: Regression
FTRL is an online-style regularized classifier. The update combines adaptive learning rates with L1/L2 regularization, making it useful for sparse or streaming-style binary prediction problems.
The exposed class is deliberately simple: fit once on a design matrix and binary labels, then predict scores for new rows.
Constructor: cm.FTRL
Call FTRL(alpha, beta, l1_ratio, l2_ratio), then fit(x, y_int32). predict(x) returns scores in [0, 1]; summary() returns coefficient estimates and marks analytic inference unavailable for the penalized online estimator.
summary() contractThe table below is generated by fitting the live class in this repository and then inspecting summary(). Shapes are shown because most values are plain NumPy arrays or scalars.