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
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
Partitioning is an important technique when you have a large amount of data and like to partition it based on a pivot value. NumPy can do this very efficiently and it leads to some cool applications.
.
Wanna know more? Check out the slides!

.

.

๐Ÿ‘จโ€๐Ÿ’ป#NumPy
Being fluent in NumPy goes a long way in becoming a data scientist ๐Ÿƒ Today we are taking an important step in that direction! ๐Ÿš€
.
Wanna know more? Check out the slides!
.

๐Ÿ‘จโ€๐Ÿ’ป#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