extract.prob function

Obtain conditional probabilities from training data