% load seed
seed = 3;
load housing
lambda=1;
split=0.7;
y_col=14;
%code this function
[train,y_train,test,y_test]=split_train_test(housing,seed,split,y_col);
%code this function
theta=train_linear_reg(train,y_train,lambda);
%code this function
pred=predict(test,theta);
%code this function
mae=mean_abs_loss(pred,y_test);
sprintf('The mean absolute loss is %0.0f$',mae*1000)


