support weighted training instances