pyconstruct.models.LinearModel.margin

LinearModel.margin(X, Y, Y_pred, **kwargs)

Computes the margin of the current model for the given data.