check for convergence instead of just iterating a set number of times
python control script for linear regression that is local mode or mapreduce mode agnostic