Downsampling predictive model

Ready for code review by @athawk81