nltk.CrossValidationProbDist.__init__

CrossValidationProbDist.__init__(freqdists, bins)[source]

Use the cross-validation estimate to create a probability distribution for the experiment used to generate freqdists.

Parameters:
  • freqdists (list(FreqDist)) – A list of the frequency distributions generated by the experiment.
  • bins (int) – The number of sample values that can be generated by the experiment that is described by the probability distribution. This value must be correctly set for the probabilities of the sample values to sum to one. If bins is not specified, it defaults to freqdist.B().