np.float is deprecated and throws an error in python 3. Recommend replacing with np.float16 or similar.