I'm not going to derive it here, The maximum likelihood learning rule for the weight WJI is simply to change it in proportion to the state of J times the difference between the binary state of I and the probability that the binary states of I's parents would turn it on. 