 I think p_j should be 1-p when it's negative sample and p in positive sample, p is the probability of being a nodule. @Luoxd1996