removed line 121, changed ec.updated_prediction to ec.pred.scalar, update_weight now uses foreach_feature template