TensorFlow, Deep Learning, Neural Networks, Machine Learning, Colab.
through 500 iterations in each iteration the loss will keep on decreasing. Now, I am going to pass the X=12, and let’s see what our model predicts. The output should be y = 2(12)-1 = 23 model.predict([12]) # OUTPUT: array([[22.976109]], dtype=float32) Nice, our model has learned the pattern