Added code to compute the mean for regression tasks.
Merge branch 'boost-eigen' of github.com:kmatzen/caffe into boost-eigen