make regression module compatible with rank loss, now support weighted loss