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
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
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
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 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
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
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
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
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
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
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
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