oh you are right. I could have sworn I saw it require a per-sample weight vector! weird.
Thanks for the catch!
PS: it would still be interesting to know whether there is an efficient way to map values from a vector to their respective values using a dict.