colcarroll
Re:Using jupyter notebooks with a virtual environment
on Thursday November 02, 2017 @10:03AM (#15610438)
I've also got a small CLI on PyPI to do the same: https://pypi.python.org/pypi/callisto
Re:Edward is officially moving into TensorFlow
on Friday October 06, 2017 @11:50AM (#15417740)
Osvaldo Martin has ported (most of?) the book to PyMC3: https://github.com/aloctavodia/Statistical-Rethinking-with-P...
Re:Anti-Patterns in Python Programming
on Wednesday July 09, 2014 @04:01PM (#8011914)
As you point out though, it depends on where the function is coming from:
$ python -mtimeit -s'nums=range(10)' '[str(i) for i in nums]' 100000 loops, best of 3: 2.57 usec per loop
$ python -mtimeit -s'nums=range(10)' 'map(str, nums)' 1000000 loops, best of 3: 1.88 usec per loop
$ python -mtimeit -s'nums=range(10)' 'import math' '[math.sqrt(i) for i in nums]' 100000 loops, best of 3: 3.25 usec per loop
$ python -mtimeit -s'nums=range(10)' 'import math' 'map(math.sqrt, nums)' 100000 loops, best of 3: 2.55 usec per loop