commit when doing lenear regression