Add conditional probability layer