Regression with Linear Factored Functions