update for linear regression
SVM added