setWeights function

Set weights in UBaymodel object