1. 05 mar., 2016 3 validations
    • norvig's avatar
      abstract methods · 5a36f3d6
      norvig a écrit
      use “raise NotImplementedError” for abstract methods
      5a36f3d6
    • norvig's avatar
      Update utils.py · e046bcc7
      norvig a écrit
      e046bcc7
    • norvig's avatar
      Port utils.py to Python 3.5 -- from tmrts · 87c60dd9
      norvig a écrit
      This is really the pull request from tmrts, but as a novice git user, I couldn't figure out how to do the merge after there were some other changes, so I did it manually. Sorry that you don't get official credit, tmrts, but thanks!
      87c60dd9
  2. 04 mar., 2016 2 validations
  3. 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
  4. 29 oct., 2011 4 validations
  5. 28 oct., 2011 1 validation
  6. 26 oct., 2011 1 validation
  7. 23 oct., 2011 4 validations
  8. 19 oct., 2011 1 validation
  9. 11 oct., 2011 1 validation
  10. 10 oct., 2011 1 validation
  11. 09 oct., 2011 1 validation
  12. 06 oct., 2011 1 validation
  13. 28 sept., 2011 1 validation
  14. 02 sept., 2011 1 validation
  15. 01 sept., 2011 1 validation
  16. 28 août, 2011 2 validations
  17. 13 jan., 2008 1 validation
  18. 25 nov., 2007 1 validation
  19. 13 juin, 2007 1 validation