updated training for regularizer to use logs
add min regularizer as training parameter