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
πŸ—£οΈ SWIPE FOR DEMO
.
Last Part of COVID-19 Data Visualization Project with Bokeh 😍
.
In this part, you’re going to add a slider to browse through the dates and make it an interactive demo
NumPy is one of my favorite packages. It’s one of the most powerful numeric packages available on any programming languages..Tied with Python, it makes for a quick script fiddling with a lot of numbers..Did you know that you could develop your machine learning algorithms in NumPy? That’s how I initially learned to implement my AI algorithms..Btw, does anyone have the answer to guru’s question in the last line of code? πŸ€”
.
πŸ‘¨β€πŸ’»#NumPy
Let’s continue our NumPy discussion, shall we? πŸ‘ .
I found NumPy’s matmul and multiply confusing when I was starting out, so why not compare them in a post?
.
matmul is the equivalent of the dot product between two matrices, where the last dimension of the first matrix has to be equal to the first dimension of the second matrix. Easy, right? πŸ’ͺ
.
On the other hand, multiply is the convenient operation of taking two same size matrices and multiplying them element wise. This will come in handy when we talk about building deep neural nets πŸ”œ
.
Don’t forget to swipe to see the code examples ‼️‼️
.
Question: NumPy has another operation called β€œdot” 🀯 what do you think that does (hint is in this post)
.
πŸ‘¨β€πŸ’»#NumPy
Hello data scientists πŸ‘‹ and welcome to the post of the day πŸ™ .It’s time we talk about NumPy slicing. NumPy slicing is a very common technique to manipulate large data πŸ“Š.It can be used with any number of dimensions of data with the same syntax πŸ€”.Here I was able to extract my favorite fruits from a large array of food items. Neat, right? πŸ’‘.Keep in mind array[:, 1:3] will take all the rows (:) and columns 1 and 2 of the dataset.
.
πŸ‘¨β€πŸ’»#NumPy
Hiii data scientists πŸ‘‹πŸ‘‹.Hope your week is off to a great start.I know I couldn’t start mine properly without talking about some NumPy πŸ€¦πŸ»β€β™‚οΈ.3 new functions and a useful concept for today, shall we? πŸ‘.zeros(), ones() and diag() are three super useful functions I use all the time using NumPy. They give us the three basic matrixes: matrix of zeros, ones, and a diagonal matrix with specific values, respectively πŸ‘Œ.Doing arithmetic with NumPy matrices is super easy, unless what you’re doing is a matrix operation, all other operations occur at element level such a scalar multiplier and scalar addition πŸ™Œ.Liked today’s lesson? Let me know what you would like to learn next
.
πŸ‘¨β€πŸ’»#NumPy
Hi data science enthusiasts πŸ‘‹ and welcome to part 5 of intro to NumPy.Today, we are gonna talk about broadcasting in NumPy πŸ”’.Broadcasting is a powerful, useful yet tricky feature in NumPy. If you know it by heart 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 the matrices 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 matrix can be added to a scalar element-wise through this feature, a column vector can get added to every column, and a row vector can get added to every row.Again, really powerful stuff πŸ’ͺπŸ’ͺ.Hope you’re enjoying the journey we are on so far as much as I am.
.
πŸ‘¨β€πŸ’»#NumPy
Hello Data Science & NumPy enthusiasts πŸ‘‹πŸ‘‹.Of course it’s time for yet another episode on NumPy πŸ™.Stacking arrays horizontally and vertically is something I do almost everyday.When you train large networks, your data becomes very large arrays of features, and very often, it’s needed to stack them to be able to feed them to the next layer of the network.So it’s supeeeer helpful to know how to do that in NumPy and voila it’s not so bad with np.vstack and np.hstack, you can stack up your arrays as long as the sizes match in the direction you’re stacking πŸ‘.Happy stacking πŸ˜‚πŸ‘Œ
.
πŸ‘¨β€πŸ’»#NumPy
‼️ To ensure every new post is visible to you, please turn on post notification at the top right of the post ‼️.Welcome to part 7 of our journey through NumPy πŸ‘‹.When it comes to data manipulation, being able to filter data points of various ranges is a must πŸ‘.NumPy makes it really easy to filter data points and reset their values πŸ‘Œ.I use this technique daily in my job to get the data in the form I need before feeding it to my machine learning model πŸ™.How are you planning to use NumPy in your projects ⁉️❓
.
πŸ‘¨β€πŸ’»#NumPy
Welcome back to another NumPy lesson! πŸ‘‹.Basketball players make a great excuse to learn about arg functions in NumPy πŸ€.argmax() returns the index of the element with the maximum value.argmin() returns the index of the element with the minimum value.argsort() returns the indices of the array in ascending order πŸ‘Œ.Basically what adding arg to the name of the function does is to make return the *index* of the element and not the element itself.This is handy for this example because we then use the index to retrieve the name of the player from the other array 🀯😏.
.
πŸ‘¨β€πŸ’»#NumPy
πŸ—£ Turn on post notifications to be always in the know
.
NumPy part 9: np.where()
.
np.where() returns the indices where the condition is met (not the elements themselves) πŸ‘Œ
.
.

.
πŸ‘¨β€πŸ’»#NumPy
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