63.1K subscribers
119 photos
1 video
1 link
Data science, Machine learning, and Artificial Intelligence. We post daily contents related to machine learning focusing on Numpy, Pandas, and ML effectively.
Download Telegram
Part 10 πŸŽ‰ of Intro to NumPy, what a journey guys, thanks for sticking around for these posts!! On to part 100 shall we??
.

Follow u0040bigdataguru for tutorials and instructional posts on AI, machine learning and deep learning!
.
.
πŸ‘¨β€πŸ’»#NumPy
.
np.tile() is one of the most beautiful yet super useful functions there is in NumPy and Python! Happy weekend!! πŸŽ‰πŸ‘Œ
.
Typo alert: 4th slide should say np.array([[6], [7]]) for the picture to match!
.
πŸ‘¨β€πŸ’»#NumPy
np.cumsum() is a useful function when it comes to doing big data cumulative sums. See it, learn it, and use it πŸ’ͺ
.
.
.
πŸ‘¨β€πŸ’»#NumPy
This post is inspired by a great question on the last post! So keep asking great questions and motivate future posts πŸ’ͺ
.
.
πŸ‘¨β€πŸ’»#NumPy
Hi Data Science enthusiasts πŸ‘‹
.
Today, we are gonna talk about broadcasting in NumPy πŸ”’
.
Broadcasting is a powerful, useful yet tricky feature in NumPy. If you know it well and use it intentionally, you can simplify a lot of code πŸ‘Œ
.
However, if it’s used by mistake it can create bugs and a lot of headaches πŸ€•
.
That’s because in NumPy, you can easily do operations between matrices even if they don’t have the same shape πŸ‘Œ
.
NumPy β€œbroadcasts” the smaller matrix (if valid for the operation) and repeats the operation per element, row, column, etc 🀘
.
In today’s code snippet, a scalar broadcasts into the same size of a matrix to be subtracted. Similarly, a row and column vector broadcasts into the right shape before getting subtracted!
.
Wanna know how? Check out the post!

.πŸ‘¨β€πŸ’»#NumPy