Implmented some basic outline for predict with sparse support