Automatic Re-weighting of maximum likelihood functions for parameter regression