- TensorFlow 1.x Deep Learning Cookbook
- Antonio Gulli Amita Kapoor
- 38字
- 2021-07-02 22:01:34
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')