Training of ordinary least squares linear regression model