Modify the log_probability function to return -1 times its previous value; rename it neg_log_probability.  Weight-setting now works.