Sample weight error raised already in fit. Otherwise np.average, which is called by _center_data will raise an equivalent error message