TensorFlow 1.x Deep Learning Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

We can predict the house price now using the coefficients learned from the model:

N= 500
X_new = X_train [N,:]
Y_pred = (np.matmul(X_new, w_value) + b_value).round(1)
print('Predicted value: ${0} Actual value: / ${1}'.format(Y_pred[0]*1000, Y_train[N]*1000) , '\nDone')