I suggest this name change, because in a first reading I confused `weight` with `sample_weight`.