Check for consistency between regularizer matrix and number of features.
regularizer (np.ndarray) – regularizer matrix.
n_feats (int) – number of features.