modify parallel training in Model.cpp

wg=\sum wp
wg: global wegiht;
wp: local weight;