cosmit: n -> n_samples