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
.
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
.
Wanna know more? Check out the slides!
.
.
๐จโ๐ป#NumPy
Level up your Python skills with our Telegram channel! ๐๐ฅ
Join now for valuable Python insights, tutorials, and community discussions. Let's learn and code together! ๐ป๐
https://t.me/+gumUMX-TjOdiOGY0
Join now for valuable Python insights, tutorials, and community discussions. Let's learn and code together! ๐ป๐
https://t.me/+gumUMX-TjOdiOGY0
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
.
Wanna know more? Check out the slides!
.
๐จโ๐ป#NumPy
Hi everyone ๐๐.I wanted to introduce Pandas to you in case itโs new to you. We will be working a lot with it in the future so a nice introduction will go a long way ๐.I have asked a few of my friends โผ๏ธ to help me introduce Pandas to you by showing up on the post ๐๐.Jokes aside, Pandas is a really powerful data analytics library in Python that I use almost everyday. Itโs robust, fast, and great for prototyping data science problems ๐ง ..It quickly feels like youโre working with a database, so if you know SQL this wonโt feel too different..Let me know who your favorite founder is from the 4 on the picture. Iโll keep mine a secret for now. ๐
.
๐จโ๐ป#Pandas
.
๐จโ๐ป#Pandas
Hi everyone ๐๐.My friends are here again for part 2 of our intro to Pandas๐๐๐.In Pandas, you can easily extract more useful data points from existing data in the table, and because Pandas has been optimized to work on large amounts of data, column operations are super fast ๐จ..Here I divide the foundersโ net worth by their age, to get a sense of their average wealth accumulation rate.Then I am interested to see whoโs accumulated wealth the fastest, so I sort the column in the descending order ๐๐ป.Super fast, in a few lines, I have answered a couple of my questions about my favorite founders ๐.
.
๐จโ๐ป#Pandas
.
๐จโ๐ป#Pandas
Hello all and welcome to the 3rd episode of our Intro to Pandas series @bigdataguru ๐๐.Our friends, the 4 founders, have been kind enough to show up once again to help us understand two important functions on Pandas ๐.groupby()mean().Groupby() as the name suggests groups the rows of data frame based on the values of a column of columns..The result of the groupby is usually used for aggregation of data, in the case finding the mean number of employees employed in given states by these 4 companies.With those in our toolset, we can now do incredible things with data ๐๐ป๐๐ป.
.
๐จโ๐ป#Pandas
.
๐จโ๐ป#Pandas
Hi data scientists ๐๐๐.A coincidence that the day we just finished was Valentineโs Day but I have been receiving a lot of love ๐ from you guys lately! Many of you have reached out and supported the content, just know that itโs appreciated and it will make this page better! ๐.With that, letโs get to todayโs post, shall we?? .Of course when we are talking about Pandas, our good friends the founders are back to help us! ๐.However our founders have been having a little argument lately. Even one was allegedly heard calling another one โhey boomerโ โผ๏ธ and the other responded back with โyou millennialโ ๐คฆ๐ปโโ๏ธ Even though arguments are not nice, this gives us the chance to use Pandas to settle who is in what generation!.pd.cut allows us to categorize a continuous spectrum into bins ๐ here our bins are the generations and the continuous spectrum is the year number ๐.After seeing exactly whoโs in what generation, our founders realize that they should apologize to each other. They have promised to treat each other better in the next post so stay tuned ๐ฃ.Correction: founders_df[โBirthโ] should be founders_df[โBirthYearโ] โผ๏ธโผ๏ธ
.
๐จโ๐ป#Pandas
.
๐จโ๐ป#Pandas
Hello all and welcome to the post of the day ๐ .Today, we are going to introduce Machine Learning and Deep Learning and talk about what makes them different ๐ค .In traditional machine learning, scientists had to define concrete and well defined features for the inputs, those features would then get fed into a neural network that would produce a prediction ๐.In deep learning however, we are leaving it to the network to learn and ultimately decide which features it seems relevant to the learning problem ๐ก .This is precisely why deep learning is so powerful, everything end to end is learned by the network. The hard part then becomes designing the perfect network for a given problem ๐ง .Super excited to be going through this journey through AI with you guys. Stay tuned for more machine learning posts this coming week ๐
____
๐จโ๐ป #Machine_Learning
____
๐จโ๐ป #Machine_Learning
Hello data science enthusiasts ๐๐.Weekend calls for a machine learning related post, doesnโt it?.Machine learning historically started with the two main types: supervised and unsupervised..Overtime, a new type was invented โreinforcementโ learning, and now there is even more types ....So, what are they?.Supervised: training a model with labeled data points, you โsuperviseโ the model by giving it the โright answersโ.Unsupervised: you ask the model to tell you what it thinks the data classifications or clustering should be based on the pattern it can find in the data. This is a good approach for when there are no right answers or the right answers are not available..Reinforcement: this type is largely evolving and generally is orchestrated on a series of actions and rewards. The model learns over time what action to take and when to optimize its total rewards..Machine learning is fast moving field and the research in it brings a ton of new ideas every month ๐๐ง .We should be covering the different techniques used on this slide in the future posts so stay tuned ๐ฃ๐ฃ
____
๐จโ๐ป #Machine_Learning
____
๐จโ๐ป #Machine_Learning
Hello everyone ๐๐.Today we are continuing our journey in machine learning with this 3rd post in the series ๐.Logistic regression is one of the most widely used and popular classification algorithms out there. Due to its diversity, simplicity and robustness, itโs become super popular as a baseline model all along the field ๐.At the heart of logistic regression, is the sigmoid function, a smooth function that takes any value and outputs a value between 0 and 1. This function allows for any input to be โclassifiedโ in one of the two binary classes after a threshold is applied ๐.Neat, right? ๐
____
๐จโ๐ป #Machine_Learning
____
๐จโ๐ป #Machine_Learning
Hi everyone ๐๐ and welcome to another โIntro to Machine Learningโ post ๐ง .Supervise Learning is everywhere. In fact, 90% of the problems I have solved so far with ML have been through Supervised Learning.With Supervised Learning, you can answer so many questions and become an expert in ML ๐.The two types of Supervised Learning are crucial to Artificial Intelligence: regression and classification.An example of regression is predictions the price of a home based on its number of bedrooms, number of bathrooms, size and age ๐ ..An example of a classification problem could be predicting whether a cancer tumor is benign or not ๐ .
____
๐จโ๐ป #Machine_Learning
____
๐จโ๐ป #Machine_Learning