imsl.regression.LogisticRegression.coefficients

LogisticRegression.coefficients

Return the logistic regression coefficients.

Returns:Array containing the regression coefficients.
Return type:*(n_classes, n_coeffs) ndarray*

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.