nltk.MutableProbDist.__init__¶
-
MutableProbDist.
__init__
(prob_dist, samples, store_logs=True)[source]¶ Creates the mutable probdist based on the given prob_dist and using the list of samples given. These values are stored as log probabilities if the store_logs flag is set.
Parameters: - prob_dist (ProbDist) – the distribution from which to garner the probabilities
- samples (sequence of any) – the complete set of samples
- store_logs (bool) – whether to store the probabilities as logarithms