Printing out the model

How can I print out the model being implemented after the it has been modified by several epochs?
For example, in the first example our model after 500 epochs gave a value of 18.98. How can I visualise the rule it is implementing that it has learned?

Please read about get_weights.