fix bug: theta should subtract sum of mutiple training set in one calculation