Are you ready to take your entrepreneurial dreams to the next level? Imagine having your own European company up and running in just 5 minutes, opening doors to limitless opportunities on a global scale. Well, your vision can become a reality with Xolo. In this article, I’m thrilled to share my personal journey and how … Read more
Just change this: a = 3.56803 print(a.round(2)) to this: a = 3.56803 print(round(a, 2))
In a normal njit function setting error_model=”numpy” does exactly this. There are also significant speedups possible by setting this option. So: @njit(error_model=”numpy”) If you are wandering what Numba is, read more about Numba here. It’s a really cool thing, I highly recommend getting familiar with it.
X = X.reshape(X.shape,-1)