RogueWave

imsl.regression.LogisticRegression.coefficients

LogisticRegression.coefficients

Return the logistic regression coefficients.

Returns:

(n_classes, n_coeffs) ndarray

Array containing the regression coefficients.

Notes

The last row (row n_classes) of the returned array represents the reference class and is set to all zeros. If ref_class < n_classes, rows ref_class and n_classes are swapped, i.e. the coefficients for class n_classes will be returned in row ref_class and vice versa.