add averge_grad to class base_model
add averge_grad to class base_model