Tag Archives: where

Handle numpy log of smaller values or zero

Pass a condition to handle discrete or continuous values in the where param for np.log >>> import numpy as np >>> x = np.array([0, 1, 2]) >>> np.log(x) __main__:1: RuntimeWarning: divide by zero encountered in log array([ -inf, 0. , 0.69314718]) >>> >>> >>> np.log(x, where=x > 0) array([0. , 0. , 0.69314718]) >>> np.log(x, […]

0  

Where is WordPress API Key????

http://www.wordpressmax.com/wordpress-guide/api-key-confusion << This link came to my rescue when I wanted to find my own WordPress API key. There is a clear demarcation between wordpress.com (where a user creates his online blog) and wordpress.org (which provides the software for users to create a self-hosted wordpress website). If you are a wordpress.com blogger, you can easily […]

0