dualbounds.dist_reg.MonotoneLogisticReg.fit

MonotoneLogisticReg.fit(X: array, y: array, solver='CLARABEL', **solver_kwargs)[source]

Fits the linear model using a cvxpy backend.

Parameters:
X : np.array

(n,p)-shaped design matrix.

y : np.array

n-length vector of binary response.

solver : str

Solver for cvxpy to use. Default: CLARABEL.

solver_kwargs : dict

Kwargs for the cvxpy solver.