Fastest way to compute entropy in Python
@Sanjeet Gupta answer is good but could be condensed. This question is specifically asking about the “Fastest” way but I only see times on one answer so I’ll post a comparison of using scipy and numpy to the original poster’s entropy2 answer with slight alterations. Four different approaches: (1) scipy/numpy, (2) numpy/math, (3) pandas/numpy, (4) … Read more