News for hackers. Stuff that matters.

njam

Re:Buy, sell, send and receive Bitcoin Cash on Coinbase on Wednesday December 20, 2017 @06:07AM (#15968641)
Every stock IPO spikes, of course this will lead to atleast a temporary price spike.
Re:Building a Poor Man’s Deep Learning Camera in Python on Tuesday December 19, 2017 @05:03AM (#15959096)
This is an awesome family xmas project. I don't have an old pc around to run YOLO / YOLO Tiny constantly though; can anyone recommend a cheap, suitable server provider for this? AWS EC2?
Re:A supercomputer often won’t make your code run faster on Thursday December 14, 2017 @09:50AM (#15922626)
You're spot on with vectorisation. It needs to be emphasized in academia. Take numpy/pandas, even for basic stuff the efficiency difference vs a for loop is vast:

  def product_sum(a, b):
      total = 0
      for a, b in zip(a, b):
          total += a * b
      return total
  %timeit product_sum(million_a, million_b)
  215 ms ± 3.01 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
  %timeit (million_a * million_b).sum()
  6.01 ms ± 254 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)