adelie.diagnostic.plot_coefficients#

adelie.diagnostic.plot_coefficients(betas: csr_matrix, lmdas: ndarray, groups: ndarray, group_sizes: ndarray, *, l2_norm: bool = False)[source]#

Plots the coefficient profile.

Parameters:
betas(L, p) csr_matrix

Coefficient vectors \(\beta\).

lmdas(L,) ndarray

Regularization parameters \(\lambda\).

groups(G,) ndarray

List of starting indices to each group where G is the number of groups. groups[i] is the starting index of the i th group.

group_sizes(G,) ndarray

List of group sizes corresponding to each element of groups. group_sizes[i] is the size of the i th group.

l2_normbool, optional

If True, the \(\ell_2\) norms of each coefficient group is plotted rather than the raw coefficient values. This may be more intuitive to visualize since there is only one path associated with a group. Default is False.

Returns:
fig, ax