HeldoutProbDist.__init__(base_fdist, heldout_fdist, bins=None)[source]

Use the heldout estimate to create a probability distribution for the experiment used to generate base_fdist and heldout_fdist.

  • base_fdist (FreqDist) – The base frequency distribution.
  • heldout_fdist (FreqDist) – The heldout frequency distribution.
  • 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().