Count of iteration

Here have applied max_iteration = 100
How to know best number of iterations applied
Linear regression

Look at the Change in Error.
When change in error < small_threshold, you should break the loop.