Linear Regression Training and Prediction