Adding weights to predictive model generator.