1. 04 nov., 2011 1 validation
    • withal's avatar
      Refactor CountingProbDist: · 7be52df7
      withal a écrit
       * Use weighted_sampler() for the sampling.
       * By not using a defaultdict, keep n_obs always up to date.
       * Don't inherit from ProbDist, at least for now, since we don't
         use anything from the superclass, and if we did it would break
         (e.g. __setitem__).
       * Remove __len__ since nobody uses it.
       * Use heapq.nlargest.
      
      Also separate random doctests from others, and tweak docs.
      7be52df7
  2. 03 nov., 2011 1 validation
  3. 01 nov., 2011 4 validations
  4. 31 oct., 2011 3 validations
  5. 30 oct., 2011 1 validation
  6. 29 oct., 2011 4 validations
  7. 28 oct., 2011 2 validations
  8. 27 oct., 2011 1 validation
  9. 26 oct., 2011 5 validations
  10. 25 oct., 2011 1 validation
  11. 24 oct., 2011 2 validations
  12. 23 oct., 2011 15 validations