> I think we should raise a ValueError is sample_weight.shape > 1 instead of
> calling ravel.

:+1: