<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5063749206686217911</id><updated>2023-04-13T02:36:13.356-07:00</updated><category term="airflow apache"/><category term="airflow api"/><category term="airflow architecture"/><category term="airflow aws"/><category term="airflow dag"/><category term="airflow github"/><category term="airflow macros"/><category term="airflow python"/><category term="airflow scheduler"/><category term="airflow tutorial"/><category term="data science"/><category term="knn algorithm"/><category term="knn algorithm example"/><category term="knn algorithm python"/><category term="knn classifier"/><category term="knn in r"/><category term="knn python"/><category term="knn regression"/><category term="knn sklearn"/><category term="knn vs k means"/><category term="artificial intelligence"/><category term="become data scientist at home"/><category term="become data scientist for free"/><category term="become data scientist from scratch"/><category term="become data scientist online"/><category term="become data scientist without degree"/><category term="become data scientist without masters"/><category term="data science algorithm"/><category term="dbscan"/><category term="dbscan algorithm"/><category term="dbscan algorithm example"/><category term="dbscan algorithm in data mining"/><category term="dbscan algorithm pseudocode"/><category term="dbscan algorithm python"/><category term="dbscan algorithm steps"/><category term="decision tree"/><category term="decision tree algorithm"/><category term="decision tree analysis"/><category term="decision tree examples"/><category term="decision tree in data mining"/><category term="decision tree machine learning"/><category term="ds algorithm"/><category term="expert data scientist"/><category term="feature selection"/><category term="feature selection algorithms"/><category term="feature selection data"/><category term="feature selection in ml"/><category term="feature selection python"/><category term="feature selection r"/><category term="feature selection random forest"/><category term="feature selection regression"/><category term="finding a job in data science"/><category term="fuzzy logic"/><category term="fuzzy sets"/><category term="fuzzy sets and fuzzy logic"/><category term="fuzzy sets applications"/><category term="fuzzy sets computer science"/><category term="fuzzy sets definition"/><category term="fuzzy sets examples"/><category term="fuzzy sets theory"/><category term="get a job in data science"/><category term="how to be an expert in data science"/><category term="how to be expert in data science"/><category term="how to become an expert in data science"/><category term="how to become expert in data science"/><category term="how to get job in data science as fresher"/><category term="how to get job in data science quora"/><category term="implementation in python"/><category term="job in data science"/><category term="job in data science reddit"/><category term="learn data science"/><category term="learn data science for free"/><category term="learn data science from scratch"/><category term="learn data science online"/><category term="learn data science python"/><category term="learn data science with python"/><category term="learn data science with r"/><category term="learn machine learning ai"/><category term="learn machine learning algorithms"/><category term="learn machine learning free"/><category term="learn machine learning from scratch"/><category term="learn machine learning online"/><category term="learn machine learning python"/><category term="linear regression algorithm"/><category term="linear regression analysis"/><category term="linear regression and correlation"/><category term="linear regression assumptions"/><category term="linear regression equation"/><category term="linear regression model"/><category term="linear regression python"/><category term="logistic regression"/><category term="logistic regression analysis"/><category term="logistic regression equation"/><category term="logistic regression example"/><category term="logistic regression in python"/><category term="logistic regression in r"/><category term="logistic regression sklearn"/><category term="machine learning"/><category term="machine learning algorithm"/><category term="ml algorithm"/><category term="naive bayes algorithm"/><category term="naive bayes assumption"/><category term="naive bayes classifier"/><category term="naive bayes classifier python"/><category term="naive bayes example"/><category term="naive bayes formula"/><category term="naive bayes model"/><category term="naive bayes sklearn"/><category term="neural network"/><category term="neural network algorithm"/><category term="neural network architecture"/><category term="neural network function"/><category term="neural network machine learning"/><category term="neural network model"/><category term="neural network python"/><category term="neural networks and deep learning"/><category term="overfitting"/><category term="overfitting and underfitting bias"/><category term="overfitting and underfitting graph"/><category term="overfitting and underfitting in neural networks"/><category term="overfitting and underfitting machine learning"/><category term="python random forest"/><category term="r random forest"/><category term="random forest"/><category term="random forest classifier"/><category term="random forest in r"/><category term="random forest regression"/><category term="random forest regressor"/><category term="reinforcement learning"/><category term="reinforcement learning data"/><category term="reinforcement learning data science"/><category term="reinforcement learning python"/><category term="sklearn decision tree"/><category term="sklearn random forest"/><category term="top algorithm"/><category term="top ds algorithm"/><category term="top ml algorithm"/><category term="underfitting"/><category term="what can data science do"/><category term="what data do scientist collect"/><category term="what data scientist do"/><category term="what data scientist do all day at work"/><category term="what does data scientist do"/><category term="what is decision tree"/><category term="what work data scientist do"/><title type='text'>ML Hero from zero</title><subtitle type='html'>Hello, my name is Rahul Dhawan (An IITan).&#xa;&#xa;I’m a son, brother, professional developer, and machine learning practitioner. I come from a solid technical background with a strong interest in the machine learning and in computer vision and a passion towards it. My area of focus and interest varies from quantitative analysis to implementation of a machine learning problem. </subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-8212970465660769680</id><published>2020-11-03T23:49:00.002-08:00</published><updated>2020-11-03T23:49:14.670-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="artificial intelligence"/><category scheme="http://www.blogger.com/atom/ns#" term="data science"/><category scheme="http://www.blogger.com/atom/ns#" term="machine learning"/><category scheme="http://www.blogger.com/atom/ns#" term="reinforcement learning"/><category scheme="http://www.blogger.com/atom/ns#" term="reinforcement learning data"/><category scheme="http://www.blogger.com/atom/ns#" term="reinforcement learning data science"/><category scheme="http://www.blogger.com/atom/ns#" term="reinforcement learning python"/><title type='text'>NEW TREND OF DATA SCIENCE: REINFORCEMENT LEARNING</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-P55d1z0nXi0/X6JcTmK1OZI/AAAAAAAAAVY/XnMErTEoULkG1omW8EOKXFwPVBmiCNMWwCLcBGAsYHQ/s918/Screenshot%2B2020-11-04%2Bat%2B1.16.01%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;476&quot; data-original-width=&quot;918&quot; src=&quot;https://1.bp.blogspot.com/-P55d1z0nXi0/X6JcTmK1OZI/AAAAAAAAAVY/XnMErTEoULkG1omW8EOKXFwPVBmiCNMWwCLcBGAsYHQ/s320/Screenshot%2B2020-11-04%2Bat%2B1.16.01%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em;&quot;&gt;Reinforcement Learning (RL) is a machine learning method that empowers a specialist to learn in an intuitive environment by performing trial and error utilizing observations from its very own activities and encounters. In spite of the fact that both direct and reinforcement learning use mapping among input and output, not at all like supervised learning where input gave to the specialist is basically the right set of activities for playing out a task, reinforcement learning utilizes prizes and discipline as signs for positive and negative conduct.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;When compared with unsupervised learning, reinforcement learning is distinctive as far as objectives are taken into consideration. While the objective in unsupervised learning is to discover synonymities and contrasts between data points, in reinforcement learning the objective is to locate a reasonable activity model that would boost the aggregate total reward of the specialist.&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;Reinforcement learning will be a huge thing in Data science in 2019. While RL has been around for quite a while in the scholarly world, it has barely observed any industry adoption whatsoever. Halfway on the grounds that there have been a lot of low-draping organic products to pick in predictive analytics, yet for the most part as a result of the hindrances in execution, learning and accessible tools. The potential worth of utilizing RL in proactive analytics and AI is huge, yet it additionally demands a more noteworthy range of abilities to ace. In addition to the fact that it involves more complicated algorithms and less advanced tools, it likewise requires precise recreations of real-life conditions. An expanding number of individuals in the industry think about the boundless capabilities of RL, however not many have been willing to make real investments. It’s, for the most part, considered excessively uncertain.&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;Reinforcement learning is the way DeepMind developed the&amp;nbsp;&lt;u style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;&lt;a href=&quot;http://thenewstack.io/alphagos-win-human-go-champion-means-ai/&quot; style=&quot;background: transparent; border: 0px; color: #3c98ca; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;AlphaGo&amp;nbsp;&lt;/a&gt;&lt;/u&gt;framework that beat a high-positioning Go player and has of the late been winning online Go matches namelessly. It’s the means by which&amp;nbsp;&lt;u style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;&lt;a href=&quot;http://news.berkeley.edu/2015/05/21/deep-learning-robot-masters-skills-via-trial-and-error/&quot; style=&quot;background: transparent; border: 0px; color: #3c98ca; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;University of California Berkeley’s BRETT&lt;/a&gt;&lt;/u&gt;&amp;nbsp;robot figures out how to move its hands and arms to perform physical undertakings like stacking squares or screwing the top onto a container, in only three hours or even in ten minutes if it’s told where the objects are kept that it will work with, and where they have to wind up. Engineers at a hackathon assembled a smart trash that can also be considered as&amp;nbsp;&lt;u style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=sOGk2Y5vQdc&quot; style=&quot;background: transparent; border: 0px; color: #3c98ca; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;AutoTrash&amp;nbsp;&lt;/a&gt;&lt;/u&gt;which deployed reinforcement learning for sorting compostable and recyclable waste into the correct compartments. Reinforcement learning is the reason Microsoft just purchased&amp;nbsp;&lt;u style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;&lt;a href=&quot;http://www.theverge.com/2017/1/13/14266398/microsoft-acquires-maluuba-ai-deep-learning-yoshua-bengio&quot; style=&quot;background: transparent; border: 0px; color: #3c98ca; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;Maluuba&lt;/a&gt;&lt;/u&gt;, which the company intends to utilize it to help in understanding day-to-day language for inquiry and chatbots, as a springboard to general intelligence.&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;However, business deployments are far rarer. In 2016, Google began utilizing DeepMind’s reinforcement learning to understand how to spare power in some of its data centers by figuring out how to enhance around 120 unique settings like how the fans and cooling frameworks run, signifying a 15% enhancement in power utilization proficiency. Further, hardly people noticed, back in January 2016, Microsoft begun utilizing a very particular subset of reinforcement learning called contextual bandits to pick up customized features for MSN.com; something various machine learning frameworks had not been able to do. The contextual bandit framework expanded clickthrough by 25% and a couple of months after the fact, Microsoft transformed it into an open source&amp;nbsp;&lt;u style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;&lt;a href=&quot;https://github.com/Microsoft/mwt-ds&quot; style=&quot;background: transparent; border: 0px; color: #3c98ca; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;Multiworld Testing Decision Service&lt;/a&gt;&lt;/u&gt;&amp;nbsp;based on the&amp;nbsp;&lt;u style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;&lt;a href=&quot;https://github.com/JohnLangford/vowpal_wabbit&quot; style=&quot;background: transparent; border: 0px; color: #3c98ca; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;Vowpal Wabbit&lt;/a&gt;&lt;/u&gt;&amp;nbsp;machine learning framework, that you can keep running on&amp;nbsp;&lt;u style=&quot;background: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;&lt;a href=&quot;http://mwtds.azurewebsites.net/&quot; style=&quot;background: transparent; border: 0px; color: #3c98ca; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.2s ease 0s; vertical-align: baseline;&quot;&gt;Azure&lt;/a&gt;&lt;/u&gt;.&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;In contrast to contextual bandits, there isn’t only one procedure for reinforcement learning. There isn’t an institutionalized stage like the Multiworld Decision Service that you can use on your own issues. But in a lot of places, stages are being developed which can be used by researchers to carry out their experiments.&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;When we talk so much about AI, reinforcement learning isn’t new; the principal reading material covering it dates to 1998. What’s new currently, is that we have involvement with a few issues that are surely known, especially in the two territories of contextual bandits and imitation learning. In any case, we additionally require these new experimentation stages like Universe, Project Malmo and DeepMind Lab to give more scientists certain access and to assess solutions in a similar situation with benchmark progress.&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;A static dataset isn’t valuable for assessing more general reinforcement learning. Two unique operators will take two distinct directions through an environment. Rather, analysts require an expansive, different set of conditions that is likewise institutionalized so everybody in the field neutralizes them. Adaptable, diverse stages can serve the similar capacity as a depository for reinforcement learning tasks where we can assess and emphasize on thoughts coming out of research a lot quicker than before when we needed to confine the algorithms to easy assessment problems since more perplexing ones weren’t accessible. In the current scenario, we can take ideas to the stages and see regardless of whether they work to perfection.&lt;/p&gt;&lt;p style=&quot;background: rgb(255, 255, 255); border: 0px; color: #737373; font-family: &amp;quot;Open Sans&amp;quot;, sans-serif; font-size: 1.15em; line-height: 24.15px; margin: 0px 0px 15px; outline: 0px; padding: 0px; vertical-align: top;&quot;&gt;In reality, each individual has distinctive knowledge, abilities and wants. It’s vital over the long haul to see how an AI professional might find out about those objectives and about the quirks and capabilities of the individual it’s working with and have the capacity to customize its assistance and activities to enable that specific individual to accomplish their objectives.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/8212970465660769680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/new-trend-of-data-science-reinforcement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8212970465660769680'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8212970465660769680'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/new-trend-of-data-science-reinforcement.html' title='NEW TREND OF DATA SCIENCE: REINFORCEMENT LEARNING'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-P55d1z0nXi0/X6JcTmK1OZI/AAAAAAAAAVY/XnMErTEoULkG1omW8EOKXFwPVBmiCNMWwCLcBGAsYHQ/s72-c/Screenshot%2B2020-11-04%2Bat%2B1.16.01%2BPM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-4968085189009599546</id><published>2020-11-02T06:46:00.002-08:00</published><updated>2020-11-02T06:46:17.294-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="what can data science do"/><category scheme="http://www.blogger.com/atom/ns#" term="what data do scientist collect"/><category scheme="http://www.blogger.com/atom/ns#" term="what data scientist do"/><category scheme="http://www.blogger.com/atom/ns#" term="what data scientist do all day at work"/><category scheme="http://www.blogger.com/atom/ns#" term="what does data scientist do"/><category scheme="http://www.blogger.com/atom/ns#" term="what work data scientist do"/><title type='text'>What do DATA SCIENTIST do?</title><content type='html'>In this blog, you will discover what are the things that data scientists do?&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-gZ3r3vORgDQ/X6AVQAIrlSI/AAAAAAAAATA/IQv1zf_hhk4-CBeZeh7bPqZBCfXsD5UlwCLcBGAsYHQ/s2290/Screenshot%2B2020-11-02%2Bat%2B7.48.19%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1112&quot; data-original-width=&quot;2290&quot; height=&quot;281&quot; src=&quot;https://1.bp.blogspot.com/-gZ3r3vORgDQ/X6AVQAIrlSI/AAAAAAAAATA/IQv1zf_hhk4-CBeZeh7bPqZBCfXsD5UlwCLcBGAsYHQ/w579-h281/Screenshot%2B2020-11-02%2Bat%2B7.48.19%2BPM.png&quot; width=&quot;579&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Data science is not about making complicated models. It&#39;s not about making awesome visualizations. It&#39;s not about writing code. Data science is about using data to create as much impact as possible for your company.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, the impact can be in the form of multiple things. It could be:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;In the form of insights.&lt;/li&gt;&lt;li&gt;In the form of data products.&lt;/li&gt;&lt;li&gt;In the form of product recommendations for a company.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;Now to do those things, then you need tools like making complicated models or data visualizations or writing code. But essentially as a data scientist, your job is to solve real company problems using data, and what kind of tools you use we don&#39;t care.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now there&#39;s a lot of misconception about data science, especially on the Web and I think the reason for this is because there&#39;s a huge misalignment between what&#39;s popular to talk about and what&#39;s needed in the industry. So because of that, I want to make things clear. I am a data scientist working for a reputated company and those companies really emphasize using data to improve their products.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So this is my take on what is data science. Before data science, we popularized the term data mining in an article called from data mining to knowledge discovery in databases. In 1996 in which it referred to the overall process of discovering useful information from data.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-zDP09Qi4Ck4/X6AS--6T59I/AAAAAAAAAS0/_mZpl5Nkxh0Qcebsv1ST-8_34R4JjwN-QCLcBGAsYHQ/s1062/Screenshot%2B2020-11-02%2Bat%2B7.38.35%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1062&quot; data-original-width=&quot;776&quot; height=&quot;320&quot; src=&quot;https://1.bp.blogspot.com/-zDP09Qi4Ck4/X6AS--6T59I/AAAAAAAAAS0/_mZpl5Nkxh0Qcebsv1ST-8_34R4JjwN-QCLcBGAsYHQ/s320/Screenshot%2B2020-11-02%2Bat%2B7.38.35%2BPM.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In 2001, William S. Cleveland wanted to bring data mining to another level. He did that by combining computer science with data mining. Basically, he made statistics a lot more technical which he believed would expand the possibilities of data mining and produce a powerful force for innovation. Now you can take advantage of computing power for statistics and he called this combo data science. Around this time&lt;/div&gt;&lt;div&gt;this is also when web 2.0 emerged where websites are no longer just a digital pamphlet, but a medium for a shared experience amongst millions and millions of users. These are web sites like MySpace in 2003, Facebook in 2004, and YouTube in 2005. We can now interact with these websites, meaning we can contribute post comments like upload share leaving our footprint in the digital landscape we call the Internet and help create and shape the ecosystem. we now know and love today. And guess what?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That&#39;s a lot of data so much data, it became too much to handle using traditional technologies. So we call this Big Data. That opened a world of possibilities in finding insights using data. But it also meant that the simplest questions require sophisticated data infrastructure just to support the handling of the data. We needed parallel computing technology like MapReduce, Hadoop, and Spark.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-ChSlwGee86A/X6AZvHtlw3I/AAAAAAAAATY/YmApasr1G2AYGLDQ4QvhnBmknJh1LJDYgCLcBGAsYHQ/s486/Screenshot%2B2020-11-02%2Bat%2B8.07.31%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;314&quot; data-original-width=&quot;486&quot; src=&quot;https://1.bp.blogspot.com/-ChSlwGee86A/X6AZvHtlw3I/AAAAAAAAATY/YmApasr1G2AYGLDQ4QvhnBmknJh1LJDYgCLcBGAsYHQ/s320/Screenshot%2B2020-11-02%2Bat%2B8.07.31%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;so the rise of big data in 2010 sparked the rise of data science to support the needs of the businesses to draw insights from their massive unstructured data sets. Then the journal of data science described data science as almost everything that has something to do with data, collecting analyzing modeling. Yet the most important part is its applications. All sorts of applications. Yes, all sorts of applications like machine learning&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So in 2010 with the new abundance of data, it made it possible to train machines with a data-driven approach rather than a knowledge-driven approach. All the theoretical papers about recurring neural networks support vector machines became feasible something that can change the way we live and how we experience things in the world. Deep learning is no longer an academic concept in this thesis paper. It became a tangible useful class of machine learning that would affect our everyday lives. So machine learning and AI dominated the media overshadowing every other aspect of data science like exploratory analysis, experimentation, ... And skills we traditionally called business intelligence. So now the general public thinks of data science as researchers focused on machine learning and AI but the industry is hiring data scientists as analysts so there&#39;s a misalignment there.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The reason for the misalignment is that yes, most of these data scientists can probably work on more technical problems, but big companies like Google Facebook Netflix have so many low-hanging fruits to improve their products that they don&#39;t require any advanced machine learning or statistical knowledge to find these impacts in their analysis. Being a good data scientist isn&#39;t about how advanced your models are, it&#39;s about how much impact you can have with your work. You&#39;re not a data cruncher, You&#39;re a problem solver, You&#39;re strategists. Companies will give you the most ambiguous and hard problems. And we expect you to guide the company in the right direction.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-GNCYgPvhDx0/X6AX-TtdKpI/AAAAAAAAATM/iOcagp42DfYnbt_czcocNjFzXSdR6lp0ACLcBGAsYHQ/s1548/Screenshot%2B2020-11-02%2Bat%2B7.59.29%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1062&quot; data-original-width=&quot;1548&quot; src=&quot;https://1.bp.blogspot.com/-GNCYgPvhDx0/X6AX-TtdKpI/AAAAAAAAATM/iOcagp42DfYnbt_czcocNjFzXSdR6lp0ACLcBGAsYHQ/s320/Screenshot%2B2020-11-02%2Bat%2B7.59.29%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So this is a very useful chart that tells you the needs of data science. Now, it&#39;s pretty obvious but sometimes we kind of forget about it now. At the bottom of the pyramid, we have collected. you obviously have to collect some sort of data to be able to use that data. So collecting, storing, transforming all of these data engineering efforts is pretty important and it&#39;s actually quite captured pretty well in media because of big data we talked about how difficult it is to manage all this data, we talked about parallel computing which means like Hadoop and Spark, stuff like that. We know about this. Now the thing that&#39;s less known is the stuff in between which is above cleaning. Surprisingly this is actually one of the most important things for companies because you&#39;re trying to tell the company, what to do with your product. So what do I mean by that?&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-C7semGXi4Jo/X6AZ9nPPQVI/AAAAAAAAATc/VZNAc4oxxUwyLc1eA8GCh-TDhyyVD6ZUwCLcBGAsYHQ/s946/Screenshot%2B2020-11-02%2Bat%2B8.08.27%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;430&quot; data-original-width=&quot;946&quot; src=&quot;https://1.bp.blogspot.com/-C7semGXi4Jo/X6AZ9nPPQVI/AAAAAAAAATc/VZNAc4oxxUwyLc1eA8GCh-TDhyyVD6ZUwCLcBGAsYHQ/s320/Screenshot%2B2020-11-02%2Bat%2B8.08.27%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I&#39;m analytics that tells you using the data, what kind of insights can tell me, what is happening to my users and then metrics this is important because what&#39;s going on with my product? You know, these metrics will tell you if you&#39;re successful or not.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So these things are actually really important but they&#39;re not so covered in media. What&#39;s covered in media&lt;/div&gt;&lt;div&gt;is this part. AI, deep learning. We&#39;ve heard it on and on about it, you know but when you think about it for a company, for the industry. It&#39;s actually not the highest priority or at least it&#39;s not the thing that yields the most result for the lowest amount of effort. That&#39;s why AI deep learning is on top of the hierarchy of needs and these things may be testing analytics. They&#39;re actually way more important for industry. So that&#39;s why we&#39;re hiring a lot of data scientists that does that. So what do data scientists actually do?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://1.bp.blogspot.com/-zEuE28WpNFU/X6AabPtEfSI/AAAAAAAAATo/i1f7BTKKq3QpRYHTL2ek8av6aZLjvLUaQCLcBGAsYHQ/s572/Screenshot%2B2020-11-02%2Bat%2B8.10.16%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;568&quot; data-original-width=&quot;572&quot; src=&quot;https://1.bp.blogspot.com/-zEuE28WpNFU/X6AabPtEfSI/AAAAAAAAATo/i1f7BTKKq3QpRYHTL2ek8av6aZLjvLUaQCLcBGAsYHQ/s320/Screenshot%2B2020-11-02%2Bat%2B8.10.16%2BPM.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well, that depends on the company because of them as of the size. So for a start-up you kind of lack of resources, so you can only kind of have one DS. So that one data scientist, he has to do everything. So you might be seeing all this being data scientists. Maybe you won&#39;t be doing AI or deep learning because that&#39;s not a priority right now, but you might be doing all of these. You have to set up the whole data infrastructure, you might even have to write some software code to add logging and then you have to do the analytics yourself, then you have to build the metrics yourself, and you have to do A/B testing yourself. That&#39;s why for startups if they need a data scientist this whole thing is data science, so that means you have to do everything.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But let&#39;s look at medium-sized companies. Finally, they have a lot more resources. They can separate the data engineers and the data scientists, so usually in the collection, this is probably software engineering. And then here, you&#39;re gonna have data engineers doing this. And then depending on if you&#39;re medium-sized company does a lot of recommendation models or stuff that requires AI, then DS will do all these&lt;/div&gt;&lt;div&gt;Right. So as a data scientist, you have to be a lot more technical. That&#39;s why they only hire people with PhDs or masters because they want you to be able to do the more complicated things&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So let&#39;s talk about a large company now. Because you&#39;re getting a lot bigger you probably have a lot more money and then you can spend it more on employees&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So you can have a lot of different employees working on different things. That way&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;the employee does not need to think about this stuff that they don&#39;t want to do and they could focus on the things that they&#39;re best at. For example, me and my untitled large company, I would be in analytics so I could just focus my work on analytics and metrics and stuff like that. So I don&#39;t need to worry about data engineering or AI deep learning stuff. So here&#39;s how it looks for a large company Instrumental logging sensors. This is all handled by software engineers&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Right? And then here, cleaning and building data pipelines. This is for data engineers. Now here, between these two things, we have Data Science Analytics. That&#39;s what it&#39;s called. But then once we go to AI and deep learning, this is where we have research scientists or we call it data science core, and they are backed by and now engineers which are machine learning engineers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Anyways, so in summary, as you can see, data science can be all of this and it depends on what company you are in and the definition will vary. So please let me know what you would like to learn more about AI deep learning, or A/B testing, experimentation,..........&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Depending on what you want to learn about, leave a comment down below so I could talk about it or I could find someone who knows about this and I can share the insights with you. So yeah, if you like this blog, don&#39;t forget to like, and subscribe. Hope you have a wonderful day. Hope this was helpful. But yeah, thanks for reading, Peace.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/4968085189009599546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/what-do-data-scientist-do.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/4968085189009599546'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/4968085189009599546'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/what-do-data-scientist-do.html' title='What do DATA SCIENTIST do?'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://1.bp.blogspot.com/-gZ3r3vORgDQ/X6AVQAIrlSI/AAAAAAAAATA/IQv1zf_hhk4-CBeZeh7bPqZBCfXsD5UlwCLcBGAsYHQ/s72-w579-h281-c/Screenshot%2B2020-11-02%2Bat%2B7.48.19%2BPM.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-1489546505470648643</id><published>2020-11-01T01:15:00.003-07:00</published><updated>2020-11-01T01:34:04.066-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="knn algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="knn algorithm example"/><category scheme="http://www.blogger.com/atom/ns#" term="knn algorithm python"/><category scheme="http://www.blogger.com/atom/ns#" term="knn classifier"/><category scheme="http://www.blogger.com/atom/ns#" term="knn in r"/><category scheme="http://www.blogger.com/atom/ns#" term="knn python"/><category scheme="http://www.blogger.com/atom/ns#" term="knn regression"/><category scheme="http://www.blogger.com/atom/ns#" term="knn sklearn"/><category scheme="http://www.blogger.com/atom/ns#" term="knn vs k means"/><title type='text'>Implementation KNN- Classifier in Python</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;figure class=&quot;me mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 33px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy aej&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1358px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aek mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 452.656px;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;904&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2716/1*BQKQ9BBkHQpO99Tteah22w.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*BQKQ9BBkHQpO99Tteah22w.png 276w, https://miro.medium.com/max/1104/1*BQKQ9BBkHQpO99Tteah22w.png 552w, https://miro.medium.com/max/1280/1*BQKQ9BBkHQpO99Tteah22w.png 640w, https://miro.medium.com/max/1400/1*BQKQ9BBkHQpO99Tteah22w.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 452.656px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1358&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;dbfe&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;As we previously examine the&amp;nbsp;&lt;a class=&quot;co wn&quot; href=&quot;https://medium.com/@rdhawan201455/knn-k-nearest-neighbour-algorithm-maths-behind-it-and-how-to-find-the-best-value-for-k-6ff5b0955e3d&quot; rel=&quot;noopener&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;KNN&lt;/a&gt;&amp;nbsp;that how it works and how to select the K for better outcomes and no overfitting. In this article, we will be going to code the python version for KNN and we will find the most immeasurable value of K to use for better outcomes.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;ebe8&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Find the below code with explanation:&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5735&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Import the necessary libraries which we will need for the future.&lt;/p&gt;&lt;/blockquote&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy ael&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2002px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aem mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 75.3906px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 75.3906px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;222&quot; src=&quot;https://miro.medium.com/max/60/1*vBQgrQplvkm_aInSptDmHw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 75.3906px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2002&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;222&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4004/1*vBQgrQplvkm_aInSptDmHw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*vBQgrQplvkm_aInSptDmHw.png 276w, https://miro.medium.com/max/1104/1*vBQgrQplvkm_aInSptDmHw.png 552w, https://miro.medium.com/max/1280/1*vBQgrQplvkm_aInSptDmHw.png 640w, https://miro.medium.com/max/1400/1*vBQgrQplvkm_aInSptDmHw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 75.3906px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2002&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4b65&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Now load the dataset from the local and find how rows look in it.&lt;/p&gt;&lt;/blockquote&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy aen&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1990px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aeo mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 170.156px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 170.156px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;498&quot; src=&quot;https://miro.medium.com/max/60/1*UtKhr7kNWyIsx6N2GsJKMQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 170.156px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1990&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;498&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/3980/1*UtKhr7kNWyIsx6N2GsJKMQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*UtKhr7kNWyIsx6N2GsJKMQ.png 276w, https://miro.medium.com/max/1104/1*UtKhr7kNWyIsx6N2GsJKMQ.png 552w, https://miro.medium.com/max/1280/1*UtKhr7kNWyIsx6N2GsJKMQ.png 640w, https://miro.medium.com/max/1400/1*UtKhr7kNWyIsx6N2GsJKMQ.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 170.156px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1990&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;325a&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;To download the dataset please refer to the following&amp;nbsp;&lt;a class=&quot;co wn&quot; href=&quot;https://www.kaggle.com/sp241930/knn-data1&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;link&lt;/a&gt;.&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;cdfb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Now select all the features and the target_class from the set and divide the set into test and train by 33% and 67%.&lt;/p&gt;&lt;/blockquote&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy aep&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2010px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aeq mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 60.8906px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 60.8906px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;180&quot; src=&quot;https://miro.medium.com/max/60/1*woppiqfhKiw2jfNHm2yQBg.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 60.8906px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2010&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;180&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4020/1*woppiqfhKiw2jfNHm2yQBg.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*woppiqfhKiw2jfNHm2yQBg.png 276w, https://miro.medium.com/max/1104/1*woppiqfhKiw2jfNHm2yQBg.png 552w, https://miro.medium.com/max/1280/1*woppiqfhKiw2jfNHm2yQBg.png 640w, https://miro.medium.com/max/1400/1*woppiqfhKiw2jfNHm2yQBg.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 60.8906px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2010&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4633&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Now for a range values of K fit on the training dataset and then test on the test dataset and find the accuracy and then store it into some array.&lt;/p&gt;&lt;/blockquote&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy aer&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1998px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aes mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 101.406px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 101.406px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;298&quot; src=&quot;https://miro.medium.com/max/60/1*7Kvi3bwOfj0vIXkOoUssVw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 101.406px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1998&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;298&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/3996/1*7Kvi3bwOfj0vIXkOoUssVw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*7Kvi3bwOfj0vIXkOoUssVw.png 276w, https://miro.medium.com/max/1104/1*7Kvi3bwOfj0vIXkOoUssVw.png 552w, https://miro.medium.com/max/1280/1*7Kvi3bwOfj0vIXkOoUssVw.png 640w, https://miro.medium.com/max/1400/1*7Kvi3bwOfj0vIXkOoUssVw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 101.406px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1998&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6b2b&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Now plot the K-values with their corresponding accuracy and see which value is best.&lt;/p&gt;&lt;/blockquote&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy aet&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1844px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aeu mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 235.266px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 235.266px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;638&quot; src=&quot;https://miro.medium.com/max/60/1*p-vZPLVobsj7XLuacRlHeQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 235.266px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1844&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;638&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/3688/1*p-vZPLVobsj7XLuacRlHeQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*p-vZPLVobsj7XLuacRlHeQ.png 276w, https://miro.medium.com/max/1104/1*p-vZPLVobsj7XLuacRlHeQ.png 552w, https://miro.medium.com/max/1280/1*p-vZPLVobsj7XLuacRlHeQ.png 640w, https://miro.medium.com/max/1400/1*p-vZPLVobsj7XLuacRlHeQ.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 235.266px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1844&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;69ab&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Now we have our model and we can predict any given unknown value with more accuracy because now we know the best value of k.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c70e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Thanks f&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;o&lt;/span&gt;r browsing my pattern, and I hope it benefits you in theory and in practice!!!!&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/1489546505470648643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/implementation-knn-classifier-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1489546505470648643'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1489546505470648643'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/implementation-knn-classifier-in-python.html' title='Implementation KNN- Classifier in Python'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-1715451621799146046</id><published>2020-11-01T01:14:00.001-07:00</published><updated>2020-11-01T01:14:21.584-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="knn algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="knn algorithm example"/><category scheme="http://www.blogger.com/atom/ns#" term="knn algorithm python"/><category scheme="http://www.blogger.com/atom/ns#" term="knn classifier"/><category scheme="http://www.blogger.com/atom/ns#" term="knn in r"/><category scheme="http://www.blogger.com/atom/ns#" term="knn python"/><category scheme="http://www.blogger.com/atom/ns#" term="knn regression"/><category scheme="http://www.blogger.com/atom/ns#" term="knn sklearn"/><category scheme="http://www.blogger.com/atom/ns#" term="knn vs k means"/><title type='text'>KNN(K-Nearest Neighbour) algorithm, maths behind it and how to find the best value for K</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;KNN is a powerful classifier and a regressor. yes, you got it right we can do both regression or classification by this algorithm. For its implementation in python please visit this&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;co wn&quot; href=&quot;https://medium.com/@rdhawan201455/implementation-knn-classifier-in-python-bf43863e821b&quot; rel=&quot;noopener&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-color: white; box-sizing: inherit; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;link&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;section class=&quot;fl fm kq ib kr&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;n p&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ab ac ae af ag ks ai aj&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy acg&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1054px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ach mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 456.766px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 456.766px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;708&quot; src=&quot;https://miro.medium.com/max/60/1*Xms5aAIxjyC-q-RvZnZdlg.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 456.766px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1054&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;708&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2108/1*Xms5aAIxjyC-q-RvZnZdlg.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*Xms5aAIxjyC-q-RvZnZdlg.png 276w, https://miro.medium.com/max/1104/1*Xms5aAIxjyC-q-RvZnZdlg.png 552w, https://miro.medium.com/max/1280/1*Xms5aAIxjyC-q-RvZnZdlg.png 640w, https://miro.medium.com/max/1400/1*Xms5aAIxjyC-q-RvZnZdlg.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 456.766px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1054&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;h1 class=&quot;abe abf ku aw ep vj abh nb ts vk abk nf tw abz abm aca ua acb abo acc ue acd abq ace ui abs ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8c5b&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;What is KNN and how it works:&lt;/h1&gt;&lt;p class=&quot;mv mw ku tl b mz abt nb nc nd abu nf ng nh wt nj nk nl wu nn no np wv nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e905&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;Let’s head by setting some definitions and notations. We will take x to denote a feature and y to denote the target.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fc6a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;KNN falls in the&amp;nbsp;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;supervised learning&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;algorithm&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;s&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;. This means that we have a dataset with labels training measurements (x,y) and would want to find the link between x and y. Our goal is to discover a function h:X→Y so that having an unknown observation x, h(x) can positively predict the identical output y.&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;38b2&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Working&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e5bc&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;First, we will talk about the working of the KNN classification algorithm. In the classification problem, the K-nearest neighbor algorithm essentially said that for a given value of K algorithm will find the K nearest neighbor of unseen data point and then it will assign the class to unseen data point by having the class which has the highest number of data points out of all classes of K neighbors.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f5e3&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For distance metrics, we will use the Euclidean metric.&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy aci&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 704px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;acj mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 119.766px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 119.766px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;124&quot; src=&quot;https://miro.medium.com/max/60/1*RY5KVSFcoqF4HX4DtuVY9Q.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 119.766px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;704&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;124&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1408/1*RY5KVSFcoqF4HX4DtuVY9Q.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*RY5KVSFcoqF4HX4DtuVY9Q.png 276w, https://miro.medium.com/max/1104/1*RY5KVSFcoqF4HX4DtuVY9Q.png 552w, https://miro.medium.com/max/1280/1*RY5KVSFcoqF4HX4DtuVY9Q.png 640w, https://miro.medium.com/max/1400/1*RY5KVSFcoqF4HX4DtuVY9Q.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 119.766px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;704&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fe35&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Finally, the input x gets assigned to the class with the largest probability.&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;dx dy ack&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 584px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;acl mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 132px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 132px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 584px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;132&quot; src=&quot;https://miro.medium.com/max/60/1*-7MbHjUzpub-kMLxEjS2Ng.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 132px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 584px;&quot; width=&quot;584&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;132&quot; sizes=&quot;584px&quot; src=&quot;https://miro.medium.com/max/1168/1*-7MbHjUzpub-kMLxEjS2Ng.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*-7MbHjUzpub-kMLxEjS2Ng.png 276w, https://miro.medium.com/max/1104/1*-7MbHjUzpub-kMLxEjS2Ng.png 552w, https://miro.medium.com/max/1168/1*-7MbHjUzpub-kMLxEjS2Ng.png 584w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 132px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 584px;&quot; width=&quot;584&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b092&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For Regression the technique will be the same, instead of the classes of the neighbors we will take the value of the target and to find the target value for the unseen datapoint by taking an average, mean or any suitable function you want.&lt;/p&gt;&lt;h1 class=&quot;abe abf ku aw ep vj abh nb ts vk abk nf tw abz abm aca ua acb abo acc ue acd abq ace ui abs ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;13f1&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Ideal Value for K&lt;/h1&gt;&lt;p class=&quot;mv mw ku tl b mz abt nb nc nd abu nf ng nh wt nj nk nl wu nn no np wv nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bc68&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;Now most probably, you are wondering how to decide the value for variable K and how it will affect your classifier. Well, like most machine learning algorithms, the K in KNN is a hyperparameter that you, as a data scientist, must decide in place to get the most suitable fit for the data set.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;32c4&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;When K is small, we are holding the region of a given prediction and pushing our classifier to be “more blind” to the overall distribution. A small value for K provides the most adjustable fit, which will have low bias but high variance. Graphically, our decision boundary will be more irregular. On the other hand, a higher K averages more voters in each prediction and hence is more flexible to outliers. Larger values of K will have smoother decision boundaries which means lower variance but increased bias.&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy acm&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1638px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;acn mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 311.344px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 311.344px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;750&quot; src=&quot;https://miro.medium.com/max/60/1*r4UMYO1_pNbY2TB0AJ3sjw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 311.344px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1638&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;750&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/3276/1*r4UMYO1_pNbY2TB0AJ3sjw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*r4UMYO1_pNbY2TB0AJ3sjw.png 276w, https://miro.medium.com/max/1104/1*r4UMYO1_pNbY2TB0AJ3sjw.png 552w, https://miro.medium.com/max/1280/1*r4UMYO1_pNbY2TB0AJ3sjw.png 640w, https://miro.medium.com/max/1400/1*r4UMYO1_pNbY2TB0AJ3sjw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 311.344px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1638&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;h1 class=&quot;abe abf ku aw ep vj abh nb ts vk abk nf tw abz abm aca ua acb abo acc ue acd abq ace ui abs ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;75d0&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Improvements&lt;/h1&gt;&lt;ul class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;mv mw ku tl b mz abt nb nc nd abu nf ng nh wt nj nk nl wu nn no np wv nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bedb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 0.86em; padding-left: 0px;&quot;&gt;An easy and mild approach to change skewed class distributions is by implementing&amp;nbsp;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;weighted voting&lt;/span&gt;.&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8a23&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Changing the distance metric&lt;/span&gt;&amp;nbsp;(i.e. Hamming distance for text classification)&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;709b&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Dimensionality reduction&lt;/span&gt;&amp;nbsp;techniques like PCA should be executed prior to applying KNN and help make the distance metric more meaningful.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;div class=&quot;n p ll vv vw vx&quot; role=&quot;separator&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); display: flex; font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; justify-content: center; margin-bottom: 14px; margin-top: 32px; padding-bottom: 10px; padding-top: 24px;&quot;&gt;&lt;span class=&quot;vy dq cb vz wa ff&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;vy dq cb vz wa ff&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;vy dq cb vz wa&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;section class=&quot;fl fm kq ib kr&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;n p&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ab ac ae af ag ks ai aj&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a062&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Thanks for browsing my pattern, and I hope it benefits you in theory and in practice!!!!&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/1715451621799146046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/knnk-nearest-neighbour-algorithm-maths.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1715451621799146046'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1715451621799146046'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/knnk-nearest-neighbour-algorithm-maths.html' title='KNN(K-Nearest Neighbour) algorithm, maths behind it and how to find the best value for K'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-7562701205122787973</id><published>2020-11-01T01:12:00.002-07:00</published><updated>2020-11-01T01:12:19.115-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="logistic regression"/><category scheme="http://www.blogger.com/atom/ns#" term="logistic regression analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="logistic regression equation"/><category scheme="http://www.blogger.com/atom/ns#" term="logistic regression example"/><category scheme="http://www.blogger.com/atom/ns#" term="logistic regression in python"/><category scheme="http://www.blogger.com/atom/ns#" term="logistic regression in r"/><category scheme="http://www.blogger.com/atom/ns#" term="logistic regression sklearn"/><title type='text'>Logistic Regression, Maths behind it and where to use it</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;figure class=&quot;me mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 33px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy abc&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1470px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;abd mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 314.547px;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;680&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2940/1*F9ZIJAzyEkYOjFKe9D2U0g.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*F9ZIJAzyEkYOjFKe9D2U0g.png 276w, https://miro.medium.com/max/1104/1*F9ZIJAzyEkYOjFKe9D2U0g.png 552w, https://miro.medium.com/max/1280/1*F9ZIJAzyEkYOjFKe9D2U0g.png 640w, https://miro.medium.com/max/1400/1*F9ZIJAzyEkYOjFKe9D2U0g.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 314.547px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1470&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;h1 class=&quot;abe abf ku aw ep vj abh nb ts vk abk nf tw abz abm aca ua acb abo acc ue acd abq ace ui abs ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;33df&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Logistic Regression:&lt;/h1&gt;&lt;p class=&quot;mv mw ku tl b mz abt nb nc nd abu nf ng nh wt nj nk nl wu nn no np wv nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6db2&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;Logistic regression is a classification algorithm used to determine the values for the discrete classes. Unlike the linear regression which usually outputs the continuous value, the logistic regression uses sigmoid function and it will output the probability which will then mapped to the two or more classes.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a1e4&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;There can be two types of logistic regression possible which are:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt wk wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3d4c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Binary:&lt;/span&gt;&amp;nbsp;(having two classes)&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt wk wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3ceb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Multi-variable:&amp;nbsp;&lt;/span&gt;(having more than two)&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;64b0&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;First of all, let us understand the binary logistic regression and then it will be too easy to grasp what is multi-variable logistic regression.&lt;/p&gt;&lt;h1 class=&quot;abe abf ku aw ep vj abh nb ts vk abk nf tw abz abm aca ua acb abo acc ue acd abq ace ui abs ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b9d1&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Binary Logistic Regression:&lt;/h1&gt;&lt;p class=&quot;mv mw ku tl b mz abt nb nc nd abu nf ng nh wt nj nk nl wu nn no np wv nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9a88&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;As notified that n&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;a&lt;/span&gt;me binary, so we will trade with the two classes primarily, we will just determine the probabilities and based upon some rule we will determine which class it belongs to mostly we will do like if p(x) &amp;gt; 0.5 then 1st class else 0th class. So we will decide the class like this simply. For predicting the probability we will use&amp;nbsp;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;sigmoid function&lt;/span&gt;&amp;nbsp;in the logistic regression which looks like&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy abv&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 916px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;abw mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 446.891px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 446.891px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;602&quot; src=&quot;https://miro.medium.com/max/60/1*wEo_h5OtFvPGBRHdVfBM4A.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 446.891px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;916&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;602&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1832/1*wEo_h5OtFvPGBRHdVfBM4A.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*wEo_h5OtFvPGBRHdVfBM4A.png 276w, https://miro.medium.com/max/1104/1*wEo_h5OtFvPGBRHdVfBM4A.png 552w, https://miro.medium.com/max/1280/1*wEo_h5OtFvPGBRHdVfBM4A.png 640w, https://miro.medium.com/max/1400/1*wEo_h5OtFvPGBRHdVfBM4A.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 446.891px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;916&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;dx dy abx&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 340px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aby mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 146px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 146px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 340px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;146&quot; src=&quot;https://miro.medium.com/max/60/1*L1ZadwCQYtrBA4fZNMFcFw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 146px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 340px;&quot; width=&quot;340&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;146&quot; sizes=&quot;340px&quot; src=&quot;https://miro.medium.com/max/680/1*L1ZadwCQYtrBA4fZNMFcFw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*L1ZadwCQYtrBA4fZNMFcFw.png 276w, https://miro.medium.com/max/680/1*L1ZadwCQYtrBA4fZNMFcFw.png 340w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 146px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 340px;&quot; width=&quot;340&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;ul class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1d76&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;s(z) = output between 0 and 1 (probability estimate)&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9d4b&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;z = input to the function (your algorithm’s prediction e.g. MX + b)&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8f55&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;e = base of natural log&lt;/li&gt;&lt;/ul&gt;&lt;h1 class=&quot;abe abf ku aw ep vj abh nb ts vk abk nf tw abz abm aca ua acb abo acc ue acd abq ace ui abs ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7875&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Multiclass Logistic regression:&lt;/h1&gt;&lt;p class=&quot;mv mw ku tl b mz abt nb nc nd abu nf ng nh wt nj nk nl wu nn no np wv nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;17b1&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;Instead of only two classes, we will extend our boundary so that now we have n classes from 0 to n-1 Essentially we run binary classification multiple times, once for each class.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0ec6&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Method:&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fc42&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Divide the problem into n binary classification problems&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2e22&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For each class…&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;415b&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Predict the probability.&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f67f&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;prediction = &amp;lt;math&amp;gt;max(probability of the classes&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;737a&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For each sub-problem, we select one class and lump all the others into a second class. Then we take the class with the highest predicted value.&lt;/p&gt;&lt;h1 class=&quot;abe abf ku aw ep vj abh nb ts vk abk nf tw abz abm aca ua acb abo acc ue acd abq ace ui abs ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;335f&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Future Learning:&lt;/h1&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;mv mw ku tl b mz abt nb nc nd abu nf ng nh wt nj nk nl wu nn no np wv nr ns nt wk wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3b47&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 0.86em; padding-left: 0px;&quot;&gt;Tolles, Juliana; Meurer, William J (2016). “Logistic Regression Relating Patient Characteristics to Outcomes”.&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt wk wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3b3c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Walker, SH; Duncan, DB (1967). “Estimation of the probability of an event as a function of several independent variables”.&lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/7562701205122787973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/logistic-regression-maths-behind-it-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/7562701205122787973'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/7562701205122787973'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/logistic-regression-maths-behind-it-and.html' title='Logistic Regression, Maths behind it and where to use it'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-2253332553471515737</id><published>2020-11-01T01:10:00.001-07:00</published><updated>2020-11-01T01:10:19.740-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linear regression algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="linear regression analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="linear regression and correlation"/><category scheme="http://www.blogger.com/atom/ns#" term="linear regression assumptions"/><category scheme="http://www.blogger.com/atom/ns#" term="linear regression equation"/><category scheme="http://www.blogger.com/atom/ns#" term="linear regression model"/><category scheme="http://www.blogger.com/atom/ns#" term="linear regression python"/><title type='text'>Linear Regression, Maths behind it and Best Reason for using least squares</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;Linear Regression&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b573&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Linear Regression is quite a way that will attempt to fit a line through observed variables (x,y). If we look into the graphs it will try to find the line which is more touching to the point (x^i,y^i) for all I in the dataset, y as a linear function of x and it will seem like&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy yj&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 760px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;yk mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 529.672px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 529.672px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;592&quot; src=&quot;https://miro.medium.com/max/60/1*DNxvmCthIfQgcH9pwzI-vw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 529.672px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;760&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;592&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1520/1*DNxvmCthIfQgcH9pwzI-vw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*DNxvmCthIfQgcH9pwzI-vw.png 276w, https://miro.medium.com/max/1104/1*DNxvmCthIfQgcH9pwzI-vw.png 552w, https://miro.medium.com/max/1280/1*DNxvmCthIfQgcH9pwzI-vw.png 640w, https://miro.medium.com/max/1400/1*DNxvmCthIfQgcH9pwzI-vw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 529.672px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;760&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0145&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;As it will try to prophesy a line most possible it will do by the least-squares method which is going to decrease the squares of the distance from the line for all the points.&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9979&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Catholic rule of Least Squares&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d67c&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;As the met&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;h&lt;/span&gt;od will try to find the line Y = MX+ b and for solving it by math just find the distance from the line by putting the point in the equation and all the distances and just minimize it by taking derivative and assigning it to the zero. The general equation looks like&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;dx dy yl&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 550px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ym mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 236px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 236px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 550px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;236&quot; src=&quot;https://miro.medium.com/max/60/1*xX0e5MEObXjv2DqxIJ1JgQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 236px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 550px;&quot; width=&quot;550&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;236&quot; sizes=&quot;550px&quot; src=&quot;https://miro.medium.com/max/1100/1*xX0e5MEObXjv2DqxIJ1JgQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*xX0e5MEObXjv2DqxIJ1JgQ.png 276w, https://miro.medium.com/max/1100/1*xX0e5MEObXjv2DqxIJ1JgQ.png 550w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 236px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 550px;&quot; width=&quot;550&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1a59&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;and to view it on the graph it will look like&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;dx dy yn&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 540px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;yo mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 472px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 472px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 540px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;472&quot; src=&quot;https://miro.medium.com/max/60/1*f4h9EbUERJtlspI87Is1gw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 472px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 540px;&quot; width=&quot;540&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;472&quot; sizes=&quot;540px&quot; src=&quot;https://miro.medium.com/max/1080/1*f4h9EbUERJtlspI87Is1gw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*f4h9EbUERJtlspI87Is1gw.png 276w, https://miro.medium.com/max/1080/1*f4h9EbUERJtlspI87Is1gw.png 540w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 472px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 540px;&quot; width=&quot;540&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8e8c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Why we use least squares&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e34c&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;One purpose is that the equations required in solving for the best-fit line are easy to solve. The only satisfying reason for using it will be proved by the gauss theorem which states&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e7b6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Suppose y=f(x). We measure values x^i,y^i and compute errors y^i-f(x^i). If these errors are independent and normally distributed, then consider, for any possible linear function f the probability P^f​ of getting the measurements (&lt;span class=&quot;ku&quot; style=&quot;box-sizing: inherit; font-style: normal;&quot;&gt;x^i&lt;/span&gt;​,&lt;span class=&quot;ku&quot; style=&quot;box-sizing: inherit; font-style: normal;&quot;&gt;y^i&lt;/span&gt;​) if y=f(x) were the correct model. The least-squares line is the line for which P^f​ is maximized.&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;74f5&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;This is the only best reason why we used it over the other methods.&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;95bd&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Future Readings&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ul class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9ed9&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Björck, Å. (1996).&amp;nbsp;&lt;em class=&quot;mx&quot; style=&quot;box-sizing: inherit;&quot;&gt;Numerical Methods for Least Squares Problems&lt;/em&gt;. SIAM.&lt;/li&gt;&lt;li class=&quot;mv mw ku tl b mz wo nb nc nd wp nf ng nh yq nj nk nl yr nn no np ys nr ns nt yp wl wm ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4a2e&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Kariya, T.; Kurata, H. (2004).&amp;nbsp;&lt;em class=&quot;mx&quot; style=&quot;box-sizing: inherit;&quot;&gt;Generalized Least Squares&lt;/em&gt;. Hoboken&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;21f0&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;I hope this helps you in understanding you, linear regression easy way.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/2253332553471515737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/linear-regression-maths-behind-it-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/2253332553471515737'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/2253332553471515737'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/linear-regression-maths-behind-it-and.html' title='Linear Regression, Maths behind it and Best Reason for using least squares'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-8091507777208579383</id><published>2020-11-01T01:08:00.001-07:00</published><updated>2020-11-01T01:08:16.292-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes assumption"/><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes classifier"/><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes classifier python"/><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes example"/><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes formula"/><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes model"/><category scheme="http://www.blogger.com/atom/ns#" term="naive bayes sklearn"/><title type='text'>Naive Bayes Algorithm: Easy way understand like expert</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;figure class=&quot;me mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 33px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy md&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1680px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;mo mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 139.234px;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;344&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/3360/1*TtQrA5Ur2sh_KloDNJQNng.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*TtQrA5Ur2sh_KloDNJQNng.png 276w, https://miro.medium.com/max/1104/1*TtQrA5Ur2sh_KloDNJQNng.png 552w, https://miro.medium.com/max/1280/1*TtQrA5Ur2sh_KloDNJQNng.png 640w, https://miro.medium.com/max/1400/1*TtQrA5Ur2sh_KloDNJQNng.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 139.234px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1680&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1452&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Bird’s eye view&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f0c4&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;In this article, you will be going to learn the Naive Bayes algorithm easily and after this, you can also talk to anyone about this like an expert.&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c1fd&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Algorithm&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6d50&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;It is the algorithm that is working on the Bayes theorem which describes the method to find the probability of an action or event based on prior knowledge.&lt;/p&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;15f6&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For example, a ball may be considered to be&amp;nbsp;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;a&lt;/span&gt;&amp;nbsp;ball if it is round, and about 5 inches in diameter. As we can see these features may describe the ball but these features are independent while contributing that ball is a ball. That’s why we call it a&amp;nbsp;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;NAIVE.&lt;/span&gt;&lt;/p&gt;&lt;figure class=&quot;nv nw nx ny nz mf dx dy paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;mg mh ck mi aj mj&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;dx dy nu&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1214px;&quot;&gt;&lt;div class=&quot;mn s ck kc&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;oa mp s&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 286.781px;&quot;&gt;&lt;div class=&quot;cg mk t u v iv aj bz ml mm&quot; style=&quot;box-sizing: inherit; height: 286.781px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;t u v iv aj mq mr au yh&quot; height=&quot;512&quot; src=&quot;https://miro.medium.com/max/60/1*bhzisO7HCnUn7soAoOK2ag.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 286.781px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1214&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;ji um t u v iv aj c&quot; height=&quot;512&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2428/1*bhzisO7HCnUn7soAoOK2ag.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*bhzisO7HCnUn7soAoOK2ag.png 276w, https://miro.medium.com/max/1104/1*bhzisO7HCnUn7soAoOK2ag.png 552w, https://miro.medium.com/max/1280/1*bhzisO7HCnUn7soAoOK2ag.png 640w, https://miro.medium.com/max/1400/1*bhzisO7HCnUn7soAoOK2ag.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 286.781px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1214&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;087c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;How it works&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6695&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;All you have to do is you just have to convert the data you have into the frequencies for all the classes and have to compute the probability of each case possible then you have to apply the Bayes theorem for prediction as simple as this. As you can see you just have to apply the formulae.&lt;/p&gt;&lt;blockquote class=&quot;ms mt mu&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;mv mw mx tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5733&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;tl fn&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;When you should use this&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;mv mw ku tl b mz na nb nc nd ne nf ng nh ni nj nk nl nm nn no np nq nr ns nt fl ci&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c90e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Suppose a situation comes, where you have to classify the data points into some classes and you know that there are too many points then easy way or you can say at sudden I will prefer you to do it by naive Bayes algorithm because it is too fast then others classification algorithm.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/8091507777208579383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/naive-bayes-algorithm-easy-way.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8091507777208579383'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8091507777208579383'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/11/naive-bayes-algorithm-easy-way.html' title='Naive Bayes Algorithm: Easy way understand like expert'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-8010467502690246736</id><published>2020-10-31T23:50:00.007-07:00</published><updated>2020-10-31T23:55:00.673-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="decision tree"/><category scheme="http://www.blogger.com/atom/ns#" term="decision tree algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="decision tree analysis"/><category scheme="http://www.blogger.com/atom/ns#" term="decision tree examples"/><category scheme="http://www.blogger.com/atom/ns#" term="decision tree in data mining"/><category scheme="http://www.blogger.com/atom/ns#" term="decision tree machine learning"/><category scheme="http://www.blogger.com/atom/ns#" term="sklearn decision tree"/><category scheme="http://www.blogger.com/atom/ns#" term="what is decision tree"/><title type='text'>Decision Tree for classification with example and why or why not we use them.</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 class=&quot;vx vy ur gs iu afj wa wu mm afk wd wy mq afl wg afm mu afn wj afo my afp wm afq nc wo he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;60e0&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;What is a Decision Tree&lt;/h1&gt;&lt;p class=&quot;wp wq ur kl b ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;cb35&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;A Decision Tree is a type of supervising algorithm which indicates that in the training set you know the input variable ( features ) and their corresponding target. Decision Tree can operate as both classifiers or regressors. In this method, we split the dataset into two or more uniform sets based on the most significant splitter/differentiator in the dataset features.&lt;/p&gt;&lt;figure class=&quot;xo xp xq xr xs xt pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;pp pq xn&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 632px;&quot;&gt;&lt;div class=&quot;xx x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;xy xz x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 432px;&quot;&gt;&lt;div class=&quot;hs xu y z ab ew ap hn xv xw&quot; style=&quot;box-sizing: inherit; height: 432px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 632px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap ya yb gq agx&quot; height=&quot;432&quot; src=&quot;https://miro.medium.com/max/60/1*afniR5IQC19n7DU7Htk0LQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 432px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 632px;&quot; width=&quot;632&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;lz age y z ab ew ap c&quot; height=&quot;432&quot; sizes=&quot;632px&quot; src=&quot;https://miro.medium.com/max/1264/1*afniR5IQC19n7DU7Htk0LQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*afniR5IQC19n7DU7Htk0LQ.png 276w, https://miro.medium.com/max/1104/1*afniR5IQC19n7DU7Htk0LQ.png 552w, https://miro.medium.com/max/1264/1*afniR5IQC19n7DU7Htk0LQ.png 632w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 432px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 632px;&quot; width=&quot;632&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wp wq ur kl b ws yc wu wv ww yd wy wz xa ye xc xd xe yf xg xh xi yg xk xl xm re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0ba5&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Example:-&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wp wq ur kl b ws yc wu wv ww yd wy wz xa ye xc xd xe yf xg xh xi yg xk xl xm re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;96ea&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Let’s say we have a sample of 50 studen&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;t&lt;/span&gt;s with three variables Gender (Boy/ Girl), Class( X/ XI) and Height (5 to 6 ft). 20 out of these 50 play cricket in rest time. Suppose you want to find on unknown dataset which contains all the features(Gender, class, height) that he/she will play or not in rest time.&lt;/p&gt;&lt;p class=&quot;wp wq ur kl b ws yc wu wv ww yd wy wz xa ye xc xd xe yf xg xh xi yg xk xl xm re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;30b2&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;This is where decision tree supports, it will separate the students based on all values of three variable and identify the variable, which creates the best uniform sets of students like below:&lt;/p&gt;&lt;figure class=&quot;xo xp xq xr xs xt pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yi yj ey yk ap yl&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq yh&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2372px;&quot;&gt;&lt;div class=&quot;xx x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ym xz x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 164.547px;&quot;&gt;&lt;div class=&quot;hs xu y z ab ew ap hn xv xw&quot; style=&quot;box-sizing: inherit; height: 164.547px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap ya yb gq agx&quot; height=&quot;574&quot; src=&quot;https://miro.medium.com/max/60/1*TAcWKla7ra4UtIogSFdANw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 164.547px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2372&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;lz age y z ab ew ap c&quot; height=&quot;574&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4744/1*TAcWKla7ra4UtIogSFdANw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*TAcWKla7ra4UtIogSFdANw.png 276w, https://miro.medium.com/max/1104/1*TAcWKla7ra4UtIogSFdANw.png 552w, https://miro.medium.com/max/1280/1*TAcWKla7ra4UtIogSFdANw.png 640w, https://miro.medium.com/max/1400/1*TAcWKla7ra4UtIogSFdANw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 164.547px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2372&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;h1 class=&quot;vx vy ur gs iu afj wa wu mm afk wd wy mq afl wg afm mu afn wj afo my afp wm afq nc wo he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;28df&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Terms you should know&lt;/h1&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wp wq ur kl b ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1297&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 0.86em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Root Node:&amp;nbsp;&lt;/span&gt;It describes the complete dataset and this additional gets split into two or more uniform sets.&lt;/li&gt;&lt;li class=&quot;wp wq ur kl b ws yq wu wv ww yr wy wz xa ys xc xd xe yt xg xh xi yu xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2a27&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Splitting:&amp;nbsp;&lt;/span&gt;It is a process of dividing a node into two or more sub-nodes.&lt;/li&gt;&lt;li class=&quot;wp wq ur kl b ws yq wu wv ww yr wy wz xa ys xc xd xe yt xg xh xi yu xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6a93&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Decision Node:&amp;nbsp;&lt;/span&gt;When a sub-node splits into further sub-nodes, then it is called the decision node.&lt;/li&gt;&lt;li class=&quot;wp wq ur kl b ws yq wu wv ww yr wy wz xa ys xc xd xe yt xg xh xi yu xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;48ed&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Leaf/ Terminal Node:&amp;nbsp;&lt;/span&gt;Nodes do not split is called Leaf or Terminal node.&lt;/li&gt;&lt;/ol&gt;&lt;h1 class=&quot;vx vy ur gs iu afj wa wu mm afk wd wy mq afl wg afm mu afn wj afo my afp wm afq nc wo he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bbe5&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Why we should use&lt;/h1&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wp wq ur kl b ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;abbd&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 0.86em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Clear to Understand quickly.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wp wq ur kl b ws yq wu wv ww yr wy wz xa ys xc xd xe yt xg xh xi yu xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;afb5&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Beneficial in Data exploration.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wp wq ur kl b ws yq wu wv ww yr wy wz xa ys xc xd xe yt xg xh xi yu xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f4aa&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Less data cleaning required.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wp wq ur kl b ws yq wu wv ww yr wy wz xa ys xc xd xe yt xg xh xi yu xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3fbf&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Data type is not a constraint.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 class=&quot;vx vy ur gs iu afj wa wu mm afk wd wy mq afl wg afm mu afn wj afo my afp wm afq nc wo he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d171&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Why not&lt;/h1&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wp wq ur kl b ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;79d3&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 0.86em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;It may lead you to an overfitting problem.&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wp wq ur kl b ws yq wu wv ww yr wy wz xa ys xc xd xe yt xg xh xi yu xk xl xm yn yo yp he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0384&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;kl jf&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Not a useful approach for continuous variables.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wp wq ur kl b ws yc wu wv ww yd wy wz xa ye xc xd xe yf xg xh xi yg xk xl xm re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0747&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Feel free to share your knowledge, suggestions, and opinions in the comments section below.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/8010467502690246736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/decision-tree-for-classification-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8010467502690246736'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8010467502690246736'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/decision-tree-for-classification-with.html' title='Decision Tree for classification with example and why or why not we use them.'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-600465867525276279</id><published>2020-10-31T23:04:00.004-07:00</published><updated>2020-10-31T23:57:38.809-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python random forest"/><category scheme="http://www.blogger.com/atom/ns#" term="r random forest"/><category scheme="http://www.blogger.com/atom/ns#" term="random forest"/><category scheme="http://www.blogger.com/atom/ns#" term="random forest classifier"/><category scheme="http://www.blogger.com/atom/ns#" term="random forest in r"/><category scheme="http://www.blogger.com/atom/ns#" term="random forest regression"/><category scheme="http://www.blogger.com/atom/ns#" term="random forest regressor"/><category scheme="http://www.blogger.com/atom/ns#" term="sklearn random forest"/><title type='text'>Random Forest and how it works</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;section class=&quot;re rf on sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;h1 class=&quot;aih aii uk gs iu afl aik wo mm afm ain ws mq aji aip ajj mu ajk air ajl my ajm ait ajn nc aiv he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a0b8&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Random Forest&lt;/h1&gt;&lt;p class=&quot;wi wj uk ns b wm aiw wo wp wq aix ws wt wu agt ww wx wy agu xa xb xc agv xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;04be&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ajq ey ajr wc&quot; style=&quot;box-sizing: inherit; float: right; height: 0px; position: relative; width: 0px;&quot;&gt;&lt;span class=&quot;x&quot; style=&quot;box-sizing: inherit; display: block;&quot;&gt;&lt;span class=&quot;y ab z ajs ajt yn yr&quot; style=&quot;box-sizing: inherit; font-size: 0px; left: 0px; line-height: 0; position: absolute; top: 0px; user-select: none;&quot;&gt;&lt;button class=&quot;fq hf fs ft fu fv fw fx fy hq fz&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: inherit; box-sizing: inherit; fill: rgb(117, 117, 117); font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0px; outline: none; overflow: visible; padding: 0px;&quot;&gt;&lt;svg aria-label=&quot;View 1 Private Notes&quot; height=&quot;19&quot; width=&quot;19&quot;&gt;&lt;path d=&quot;M14.78 8.07a8.68 8.68 0 0 0-.43-1.38.48.48 0 0 0-.58-.27l-3.12.77V4.03c0-.24-.2-.48-.43-.5a7.23 7.23 0 0 0-1.38 0c-.24.02-.43.26-.43.5V7.2L5.3 6.41a.48.48 0 0 0-.58.27c-.18.45-.33.92-.43 1.39-.05.24.1.5.32.58l3.06.75-1.98 2.96c-.14.2-.13.5.04.67.34.33.7.63 1.1.9.2.13.48.07.62-.12l2.1-3.12 2.08 3.12c.15.19.43.25.63.11a7.7 7.7 0 0 0 1.1-.89.53.53 0 0 0 .03-.67L11.4 9.41l3.06-.76a.52.52 0 0 0 .32-.58&quot; fill-rule=&quot;evenodd&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Random Forest is a Machine Learning Algorithm based on&amp;nbsp;Decision Trees. Random forest works on the ensemble method which is very common these days. The ensemble method means that to make a decision collectively based on the decision trees. Actually, we make a prediction, not simply based on One Decision Tree, but by an unanimous Prediction, made by ‘&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;K’&amp;nbsp;&lt;/span&gt;Decision Trees.&lt;/p&gt;&lt;figure class=&quot;xi xj xk xl xm vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;vt vu ey vv ap vw&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq aiy&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 924px;&quot;&gt;&lt;div class=&quot;wa x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aiz wc x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 478.344px;&quot;&gt;&lt;div class=&quot;hs vx y z ab ew ap hn vy vz&quot; style=&quot;box-sizing: inherit; height: 478.344px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap wd we gq aju&quot; height=&quot;650&quot; src=&quot;https://miro.medium.com/max/60/1*3M_DcF9VK80G1mISPsZDOA.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 478.344px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;924&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;lx aes y z ab ew ap c&quot; height=&quot;650&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1848/1*3M_DcF9VK80G1mISPsZDOA.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*3M_DcF9VK80G1mISPsZDOA.png 276w, https://miro.medium.com/max/1104/1*3M_DcF9VK80G1mISPsZDOA.png 552w, https://miro.medium.com/max/1280/1*3M_DcF9VK80G1mISPsZDOA.png 640w, https://miro.medium.com/max/1400/1*3M_DcF9VK80G1mISPsZDOA.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 478.344px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;924&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;h1 class=&quot;aih aii uk gs iu afl aik wo mm afm ain ws mq aji aip ajj mu ajk air ajl my ajm ait ajn nc aiv he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;af51&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Why should we use&lt;/h1&gt;&lt;p class=&quot;wi wj uk ns b wm aiw wo wp wq aix ws wt wu agt ww wx wy agu xa xb xc agv xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c883&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;There are four reasons why should we us&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;e&lt;/span&gt;&amp;nbsp;the random forest algorithm. The one is that it can be used for both&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;classification and regression&amp;nbsp;&lt;/span&gt;businesses. Overfitting is one critical problem that may make the results worse, but for the Random Forest algorithm, if there are enough trees in the forest, the classifier&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&amp;nbsp;won’t overfit&lt;/span&gt;&amp;nbsp;the model. The third reason is the classifier of Random Forest can handle&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;missing values&lt;/span&gt;, and the last advantage is that the Random Forest classifier can be modeled for&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;categorical values.&lt;/span&gt;&lt;/p&gt;&lt;figure class=&quot;xi xj xk xl xm vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;vt vu ey vv ap vw&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq aja&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1196px;&quot;&gt;&lt;div class=&quot;wa x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ajb wc x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 202.406px;&quot;&gt;&lt;div class=&quot;hs vx y z ab ew ap hn vy vz&quot; style=&quot;box-sizing: inherit; height: 202.406px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap wd we gq aju&quot; height=&quot;356&quot; src=&quot;https://miro.medium.com/max/60/1*_zEk1gYxiLdPzDe5yKfasw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 202.406px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1196&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;lx aes y z ab ew ap c&quot; height=&quot;356&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2392/1*_zEk1gYxiLdPzDe5yKfasw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*_zEk1gYxiLdPzDe5yKfasw.png 276w, https://miro.medium.com/max/1104/1*_zEk1gYxiLdPzDe5yKfasw.png 552w, https://miro.medium.com/max/1280/1*_zEk1gYxiLdPzDe5yKfasw.png 640w, https://miro.medium.com/max/1400/1*_zEk1gYxiLdPzDe5yKfasw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 202.406px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1196&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;h1 class=&quot;aih aii uk gs iu afl aik wo mm afm ain ws mq aji aip ajj mu ajk air ajl my ajm ait ajn nc aiv he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6cc6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;How does the Random Forest algorithm work&lt;/h1&gt;&lt;p class=&quot;wi wj uk ns b wm aiw wo wp wq aix ws wt wu agt ww wx wy agu xa xb xc agv xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f93a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;There are two stages in the Random Forest algorithm, one is random forest creation, the other is to make a prediction from the random forest classifier created in the first stage. The whole process is shown below, and it’s easy to understand using the figure.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;div class=&quot;ag ah vb afw afx afy&quot; role=&quot;separator&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); display: flex; font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; justify-content: center; margin-bottom: 14px; margin-top: 32px; padding-bottom: 10px; padding-top: 24px;&quot;&gt;&lt;span class=&quot;afz is dv aga agb en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;afz is dv aga agb en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;afz is dv aga agb&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;section class=&quot;re rf on sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;p class=&quot;wi wj uk ns b wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fe75&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;In the first stage, we will build the random forest:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wi wj uk ns b wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;62ae&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Randomly select “&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;K&lt;/span&gt;” features from total “&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;m&lt;/span&gt;” features where&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;k &amp;lt;&amp;lt; m&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1244&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Among the “&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;K&lt;/span&gt;” features, calculate the node “&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;d&lt;/span&gt;” using the best split point&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;01b8&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Split the node into&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;daughter nodes&lt;/span&gt;&amp;nbsp;using the&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;best split&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1783&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Repeat the&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;a to c&lt;/span&gt;&amp;nbsp;steps until “l” number of nodes has been reached&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2cd1&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Build forest by repeating steps&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;a to d&lt;/span&gt;&amp;nbsp;for “n” number times to create&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;“n” number of trees&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;div class=&quot;ag ah vb afw afx afy&quot; role=&quot;separator&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); display: flex; font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; justify-content: center; margin-bottom: 14px; margin-top: 32px; padding-bottom: 10px; padding-top: 24px;&quot;&gt;&lt;span class=&quot;afz is dv aga agb en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;afz is dv aga agb en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;afz is dv aga agb&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;section class=&quot;re rf on sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;p class=&quot;wi wj uk ns b wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;622c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;In the next stage, with the random forest created, we will make the prediction. The random forest prediction pseudocode is shown below:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wi wj uk ns b wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b8c8&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Takes the&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;test features&lt;/span&gt;&amp;nbsp;and use the rules of each randomly created decision tree to predict the outcome and stores the predicted outcome (target)&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bd34&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Calculate the&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;votes&lt;/span&gt;&amp;nbsp;for each predicted target&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg agk agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b39f&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Consider the&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;high voted&lt;/span&gt;&amp;nbsp;predicted target as the&amp;nbsp;&lt;span class=&quot;ns kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;final prediction&lt;/span&gt;&amp;nbsp;from the random forest algorithm&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;div class=&quot;ag ah vb afw afx afy&quot; role=&quot;separator&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); display: flex; font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; justify-content: center; margin-bottom: 14px; margin-top: 32px; padding-bottom: 10px; padding-top: 24px;&quot;&gt;&lt;span class=&quot;afz is dv aga agb en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;afz is dv aga agb en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;afz is dv aga agb&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;section class=&quot;re rf on sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;p class=&quot;wi wj uk ns b wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c638&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The process is easy to understand, but it’s somehow efficient.&lt;/p&gt;&lt;h1 class=&quot;aih aii uk gs iu afl aik wo mm afm ain ws mq aji aip ajj mu ajk air ajl my ajm ait ajn nc aiv he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f8cb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Where should we use&lt;/h1&gt;&lt;p class=&quot;wi wj uk ns b wm aiw wo wp wq aix ws wt wu agt ww wx wy agu xa xb xc agv xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b223&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;The random forest can be used in the: Banking, Medicine, Stock Market and E-commerce:&lt;/p&gt;&lt;ul class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wi wj uk ns b wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg ajf agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fb3f&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;For the application in banking, the Random Forest algorithm is used to find loyal customers.&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg ajf agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5632&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For the application in medicine, the Random Forest algorithm can be used to both identify the correct combination of components in medicine.&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg ajf agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7b9f&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For the application in the stock market, the Random Forest algorithm can be used to identify a stock’s behavior and the expected loss or profit.&lt;/li&gt;&lt;li class=&quot;wi wj uk ns b wm ago wo wp wq agp ws wt wu ajc ww wx wy ajd xa xb xc aje xe xf xg ajf agl agm he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6413&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For the application in e-commerce, the Random Forest algorithm can be used for predicting whether the customer will like the recommend products, based on the experience of similar customers.&lt;/li&gt;&lt;/ul&gt;&lt;figure class=&quot;xi xj xk xl xm vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;vt vu ey vv ap vw&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq ajg&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 824px;&quot;&gt;&lt;div class=&quot;wa x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ajh wc x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 450.578px;&quot;&gt;&lt;div class=&quot;hs vx y z ab ew ap hn vy vz&quot; style=&quot;box-sizing: inherit; height: 450.578px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap wd we gq aju&quot; height=&quot;546&quot; src=&quot;https://miro.medium.com/max/60/1*jA3NJFmEo0g3FBotDfQWqA.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 450.578px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;824&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;lx aes y z ab ew ap c&quot; height=&quot;546&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1648/1*jA3NJFmEo0g3FBotDfQWqA.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*jA3NJFmEo0g3FBotDfQWqA.png 276w, https://miro.medium.com/max/1104/1*jA3NJFmEo0g3FBotDfQWqA.png 552w, https://miro.medium.com/max/1280/1*jA3NJFmEo0g3FBotDfQWqA.png 640w, https://miro.medium.com/max/1400/1*jA3NJFmEo0g3FBotDfQWqA.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 450.578px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;824&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wi wj uk ns b wm wn wo wp wq wr ws wt wu wv ww wx wy wz xa xb xc xd xe xf xg re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;281f&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Feel free to share your knowledge, suggestions, and opinions in the comments section below.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/600465867525276279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/random-forest-and-how-it-works.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/600465867525276279'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/600465867525276279'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/random-forest-and-how-it-works.html' title='Random Forest and how it works'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-2767817810669940410</id><published>2020-10-31T22:56:00.005-07:00</published><updated>2020-10-31T23:58:51.193-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="learn data science"/><category scheme="http://www.blogger.com/atom/ns#" term="learn data science for free"/><category scheme="http://www.blogger.com/atom/ns#" term="learn data science from scratch"/><category scheme="http://www.blogger.com/atom/ns#" term="learn data science online"/><category scheme="http://www.blogger.com/atom/ns#" term="learn data science python"/><category scheme="http://www.blogger.com/atom/ns#" term="learn data science with python"/><category scheme="http://www.blogger.com/atom/ns#" term="learn data science with r"/><title type='text'>How to learn Data Science / Machine Learning / Artificial Intelligence — (Schedule for you to become expert)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;Bird’s eye view&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;80b5&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;To become good at something we need to start from the beginning so if you want to expert in Machine learning / Data Science / Artificial Intelligence you will have to start from the beginning. Some words from the experts: “&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Everyone is learner so don&#39;t panic go with flow”.&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1898&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;For newcomers, programming languages like python, statistics, machine learning algorithms.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;271d&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For transitional, advanced machine learning algorithms are required to be understood.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0582&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Practicing with datasets and an online kaggle profile are helpful in practicing your skills.&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0df1&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Learning Path — Schedule for you&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;afa7&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Getting started →Statistics → Programming language →Basic of ML →Practice.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;52ce&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;It will take you 6–7 months to be an expert or as an expert then you can compete anywhere in the competition. Let’s talk about the steps of how you should proceed&lt;/p&gt;&lt;ul class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;10b2&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Getting Started: For this, you have to know why do you want to learn ML or data science, for doing that just connect with experienced people in the field of ML or data science on some social platforms like Linkedin, Facebook. I preferred you to connect on Linkedin.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1fbe&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Statistics: For this learn some statistics course from Stanford or MIT online course they are the best.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;daf6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Programming language: You should know how to code in python or R.I code on python so I prefer python over anything&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5c95&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Basics of ML: Read about algorithms used in machine learning very often.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e4a4&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Practice: After all the steps above now you are ready for going out and show your talent or what you had learned. For that just practice on Kaggle or Hacker earth also hosts some machine learning contest.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8f42&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Just do a&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;b&lt;/span&gt;ove 5 steps and you will be pro :)&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/2767817810669940410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-learn-data-science-machine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/2767817810669940410'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/2767817810669940410'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-learn-data-science-machine.html' title='How to learn Data Science / Machine Learning / Artificial Intelligence — (Schedule for you to become expert)'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-7103687755147578805</id><published>2020-10-31T22:55:00.006-07:00</published><updated>2020-11-01T00:04:01.757-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="data science"/><category scheme="http://www.blogger.com/atom/ns#" term="data science algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="ds algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="machine learning algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="ml algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="top algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="top ds algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="top ml algorithm"/><title type='text'>Top Algorithms for Machine learning Geeks: Only for experts :)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;So in my opinion to be an expert in machine learning like the other expert geeks one should know the listed below algorithms :&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ag ah vb ala alb alc&quot; role=&quot;separator&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); display: flex; font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; justify-content: center; margin-bottom: 14px; margin-top: 32px; padding-bottom: 10px; padding-top: 24px;&quot;&gt;&lt;span class=&quot;ald is dv ale alf en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ald is dv ale alf en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ald is dv ale alf&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;section class=&quot;re rf mk sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;ol class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;225e&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Naive Bayes Algorithm&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c7e0&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Linear Regression Algorithm&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5f8d&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Logistics Regression Algorithm&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a56a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;KNN&amp;nbsp;algorithm&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;755b&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Decision Tree&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a55e&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Random Forest&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c563&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;SVM&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a2fc&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;K means Algorithm&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;637e&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Artificial Neural Networks&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;div class=&quot;ag ah vb ala alb alc&quot; role=&quot;separator&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); display: flex; font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; justify-content: center; margin-bottom: 14px; margin-top: 32px; padding-bottom: 10px; padding-top: 24px;&quot;&gt;&lt;span class=&quot;ald is dv ale alf en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ald is dv ale alf en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ald is dv ale alf&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;section class=&quot;re rf mk sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4dd6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Learn about the above algorithms and you can also be an expert in machine learning like others in a few days.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/7103687755147578805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/top-algorithms-for-machine-learning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/7103687755147578805'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/7103687755147578805'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/top-algorithms-for-machine-learning.html' title='Top Algorithms for Machine learning Geeks: Only for experts :)'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-257958711003561535</id><published>2020-10-31T22:38:00.002-07:00</published><updated>2020-11-01T00:47:41.340-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="finding a job in data science"/><category scheme="http://www.blogger.com/atom/ns#" term="get a job in data science"/><category scheme="http://www.blogger.com/atom/ns#" term="how to get job in data science as fresher"/><category scheme="http://www.blogger.com/atom/ns#" term="how to get job in data science quora"/><category scheme="http://www.blogger.com/atom/ns#" term="job in data science"/><category scheme="http://www.blogger.com/atom/ns#" term="job in data science reddit"/><title type='text'>How To Get Data Science Job/Internship</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;If you all guys out there looking for tips and tricks about how to get a data science job or internship you want to apply for?&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;abec&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Before telling you how to get you should know how to be an expert in it so for that please read my&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://medium.com/@rdhawan201455/how-to-be-expert-in-machine-learning-c7c922c983d0&quot; rel=&quot;noopener&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;&lt;em class=&quot;yd&quot; style=&quot;box-sizing: inherit;&quot;&gt;article&lt;/em&gt;&lt;/a&gt;.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;33b6&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;You have come to the right place! Nowadays reports and publications consistently name ‘data scientist’ as one of the preferable jobs. While there are many articles about the set of skills you need to get the data scientist position, we wanted to focus on the students who crave working in this prosperous field.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2eaf&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The data science will be&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;a good job if you want to get chill in your life because according to many articles it will be the best job in 2020.&lt;/p&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f156&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Just follow the below steps for getting jobs/ internship&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5020&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Learn about basic stuff you do not need to research topics. so read-only about regression or classification and from top neural network. That will be enough study for fresher to know, another thing you can learn on the job.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b01d&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;After knowing the basics now you have to do some project to practice those skills go to Kaggle and do basic problems that will give you an idea of how to tackle the problem in real life.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;25c2&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Now you are ready to give an interview for getting the job, now for this, you have to show to the recruiter that you know the basics and you also did the problems based on real-life on kaggle.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6465&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Last thing I want to say don&#39;t forget to revise&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;DATA STRUCTURES AND ALGORITHM&lt;/span&gt;&amp;nbsp;because it will help in everything.&lt;/li&gt;&lt;/ol&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq ate&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1014px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;atf vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 453.328px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 453.328px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;676&quot; src=&quot;https://miro.medium.com/max/60/1*-fQVvp2NC8cLVN_q-8XvYQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 453.328px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1014&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;676&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2028/1*-fQVvp2NC8cLVN_q-8XvYQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*-fQVvp2NC8cLVN_q-8XvYQ.png 276w, https://miro.medium.com/max/1104/1*-fQVvp2NC8cLVN_q-8XvYQ.png 552w, https://miro.medium.com/max/1280/1*-fQVvp2NC8cLVN_q-8XvYQ.png 640w, https://miro.medium.com/max/1400/1*-fQVvp2NC8cLVN_q-8XvYQ.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 453.328px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1014&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;figcaption class=&quot;atg kz ud pp pq ath ati gs b gt gh gi&quot; data-selectable-paragraph=&quot;&quot; style=&quot;box-sizing: inherit; color: #757575; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin-left: auto; margin-right: auto; margin-top: 10px; max-width: 728px; text-align: center;&quot;&gt;Four Points just join them.&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;72a9&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Now you know the four points that will help now you just have to solve the puzzle( for getting the job ) step by step as I told.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/257958711003561535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-get-data-science-jobinternship.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/257958711003561535'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/257958711003561535'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-get-data-science-jobinternship.html' title='How To Get Data Science Job/Internship'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-1464865198059564457</id><published>2020-10-31T22:37:00.004-07:00</published><updated>2020-11-01T00:46:58.861-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="expert data scientist"/><category scheme="http://www.blogger.com/atom/ns#" term="how to be an expert in data science"/><category scheme="http://www.blogger.com/atom/ns#" term="how to be expert in data science"/><category scheme="http://www.blogger.com/atom/ns#" term="how to become an expert in data science"/><category scheme="http://www.blogger.com/atom/ns#" term="how to become expert in data science"/><title type='text'>How to be expert in Machine Learning</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;section class=&quot;re rf mk sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;figure class=&quot;vr vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 33px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq atc&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1024px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;atd vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 680px;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;1024&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2048/1*Fsfk96rkkBLA3pU4eEnUAg.jpeg&quot; srcset=&quot;https://miro.medium.com/max/552/1*Fsfk96rkkBLA3pU4eEnUAg.jpeg 276w, https://miro.medium.com/max/1104/1*Fsfk96rkkBLA3pU4eEnUAg.jpeg 552w, https://miro.medium.com/max/1280/1*Fsfk96rkkBLA3pU4eEnUAg.jpeg 640w, https://miro.medium.com/max/1400/1*Fsfk96rkkBLA3pU4eEnUAg.jpeg 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 680px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1024&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0472&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;One should know how to play with data&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bab6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;First of all the main thing, we need to be focused on before stepping into machine learning is that we should know how to play with data. Because believe all the geeks sitting out there doing machine learning and other cool stuff is all because they know how to play with data.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1a1d&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Note&lt;/span&gt;: Hereby playing with data means is you should know how to manipulate the data or reshape the data into something that model can understand and make sense from it and able to predict the new value.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9c29&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;So what one&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;fresher or maybe who know something but not pro should need for playing with data is only some tools like&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5819&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Pandas — For Python&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6466&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;By pandas, one can do anything that he/she can do with data. literally anything.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;div class=&quot;ag ah vb ala alb alc&quot; role=&quot;separator&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); display: flex; font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; justify-content: center; margin-bottom: 14px; margin-top: 32px; padding-bottom: 10px; padding-top: 24px;&quot;&gt;&lt;span class=&quot;ald is dv ale alf en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ald is dv ale alf en&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; margin-right: 20px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ald is dv ale alf&quot; style=&quot;background-color: #080808; border-radius: 50%; box-sizing: inherit; display: inline-block; height: 3px; width: 3px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;section class=&quot;re rf mk sh uh&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7cc8&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Applying ML Models&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e742&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;After you need the data you wanted to feed the model you will have to do only 2% of the work you did for reshaping the data. Because now you have to use&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&amp;nbsp;2 golden words of machine learning FP&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4adc&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;.F&lt;/span&gt;it()&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f4a5&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;.P&lt;/span&gt;redict()&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;ed76&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;It will be going to some for any model you use just import and use these two functions for train and predict.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5c93&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;So to become an&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;ML&lt;/span&gt;&amp;nbsp;expert you need to know data manipulation only rest is just 2 golden words.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/1464865198059564457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-be-expert-in-machine-learning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1464865198059564457'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1464865198059564457'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-be-expert-in-machine-learning.html' title='How to be expert in Machine Learning'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-1698259258244626226</id><published>2020-10-31T22:36:00.009-07:00</published><updated>2020-11-01T00:41:20.287-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="airflow apache"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow api"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow aws"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow dag"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow github"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow macros"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow python"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow scheduler"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow tutorial"/><title type='text'>Airflow for Beginners — II</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;As in the previous article&lt;/span&gt;&lt;span style=&quot;color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;Airflow for beginners — I&lt;span style=&quot;color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;we learn about the airflow and how to install the airflow on local. In this article, we will learn about the DAG and how to use the web airflow for scheduling the work and managing it.&lt;/span&gt;&lt;/p&gt;&lt;article style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;section class=&quot;re rf mk sh uh&quot; style=&quot;box-sizing: inherit; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;597f&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Let’s start with the DAG and then we will learn about the web airflow.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;ea73&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;DAG (Directed Acyclic Graph)&lt;/span&gt;&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq asq&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1094px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;asr vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 367.969px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 367.969px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;592&quot; src=&quot;https://miro.medium.com/max/60/1*by5y0swEScAd997ag2gddg.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 367.969px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1094&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;592&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2188/1*by5y0swEScAd997ag2gddg.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*by5y0swEScAd997ag2gddg.png 276w, https://miro.medium.com/max/1104/1*by5y0swEScAd997ag2gddg.png 552w, https://miro.medium.com/max/1280/1*by5y0swEScAd997ag2gddg.png 640w, https://miro.medium.com/max/1400/1*by5y0swEScAd997ag2gddg.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 367.969px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1094&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5968&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;DAG is a directed graph without a cycle in it. It has a finite number of edges and nodes. In which we can know which thing(node) will come first and we will know the sequence of the nodes. so just think as each node is a work( that you want to execute ) so we can represent the sequencing of the work by the DAG and that’s why DAG is an essential part of the airflow.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bd95&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;WEB AIRFLOW&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a617&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;So now as you saw that on&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1813&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;localhost:8080 &lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bb11&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;if you open it will look like:&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq ass&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 3332px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ast vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 377.141px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 377.141px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;1848&quot; src=&quot;https://miro.medium.com/max/60/1*GCgng_vvFER7u6Gdkm3Q5g.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 377.141px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;3332&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;1848&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/6664/1*GCgng_vvFER7u6Gdkm3Q5g.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*GCgng_vvFER7u6Gdkm3Q5g.png 276w, https://miro.medium.com/max/1104/1*GCgng_vvFER7u6Gdkm3Q5g.png 552w, https://miro.medium.com/max/1280/1*GCgng_vvFER7u6Gdkm3Q5g.png 640w, https://miro.medium.com/max/1400/1*GCgng_vvFER7u6Gdkm3Q5g.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 377.141px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;3332&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2ab5&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;now, these are the example DAG or work that is added already so for adding your own script(DAG) just follow simple steps mentioned below:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;498e&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Just go to the airflow directory in terminal (it will be in the root) then just make the new folder by the name “&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;em class=&quot;yd&quot; style=&quot;box-sizing: inherit;&quot;&gt;dags&lt;/em&gt;&lt;/span&gt;” because in the config file the path is set for dags for taking the dags.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;dd07&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Now only left is how to create the dag that we will now go through by taking the example of executing two files one after another. We are doing this example because usually in your workspace you have to execute some files at some scheduled interval.&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6e7a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;2.a. create two files in my case I created two python scripts for executing.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3b37&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;2.b. now you have to write a python script for creating DAG&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4cdf&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;so let&#39;s go in details&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e343&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;First import the libraries we need&lt;/li&gt;&lt;/ol&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;08f3&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;import airflow&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;95ac&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;from airflow.models import DAG&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;eacc&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;from airflow.operators.bash_operator import BashOperator&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3fe1&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;from airflow.operators.dummy_operator import DummyOperator&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;dc70&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;2. Now initialize the dag argument that we need to pass and initialize the dag.&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0ef1&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;def_arg = {&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f6f4&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;&#39;owner&#39;: &#39;RD_TYGA&#39;,&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9517&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;&#39;start_date&#39;: airflow.utils.dates.days_ago(2),}&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d82e&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;dag = DAG(dag_id=&#39;rahul_dhawan_dag&#39;,&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c326&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;default_args=def_arg,&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d1b6&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;schedule_interval=&#39;0 0 * * *&#39;,) # run every minute&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9f3a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;3. Now create tasks you want to execute.&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fd3b&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;t1 = BashOperator(&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6992&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;task_id=&#39;python_task_1&#39;,&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3ca4&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;bash_command=&#39;python /Users/rahul/Desktop/goal.py &#39;,&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8016&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;dag=dag)&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;df79&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;t2 = BashOperator(&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;00f3&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;task_id=&#39;python_task_2&#39;,&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c320&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;bash_command=&#39;python /Users/rahul/Desktop/goal2.py &#39;,&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8399&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;dag=dag)&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;da44&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;4. Now add the order for the run.&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6ec4&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;t1 &amp;gt;&amp;gt; t2&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;ad74&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;now just save it and run this command&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5234&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;python your_file_name.py&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;40fe&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;and after 1 or 2 minutes you will see that dag in the webserver.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7f4e&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Here you are ready with scheduling now just see how it&#39;s running.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;71c9&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;asd ey ase vy&quot; style=&quot;box-sizing: inherit; float: right; height: 0px; position: relative; width: 0px;&quot;&gt;&lt;span class=&quot;x&quot; style=&quot;box-sizing: inherit; display: block;&quot;&gt;&lt;span class=&quot;y ab z asf asg abh abl&quot; style=&quot;box-sizing: inherit; font-size: 0px; left: 0px; line-height: 0; position: absolute; top: 0px; user-select: none;&quot;&gt;&lt;button class=&quot;fq hf fs ft fu fv fw fx fy hq fz&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: inherit; box-sizing: inherit; fill: rgb(117, 117, 117); font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0px; outline: none; overflow: visible; padding: 0px;&quot;&gt;&lt;svg aria-label=&quot;View 1 Private Notes&quot; height=&quot;19&quot; width=&quot;19&quot;&gt;&lt;path d=&quot;M14.78 8.07a8.68 8.68 0 0 0-.43-1.38.48.48 0 0 0-.58-.27l-3.12.77V4.03c0-.24-.2-.48-.43-.5a7.23 7.23 0 0 0-1.38 0c-.24.02-.43.26-.43.5V7.2L5.3 6.41a.48.48 0 0 0-.58.27c-.18.45-.33.92-.43 1.39-.05.24.1.5.32.58l3.06.75-1.98 2.96c-.14.2-.13.5.04.67.34.33.7.63 1.1.9.2.13.48.07.62-.12l2.1-3.12 2.08 3.12c.15.19.43.25.63.11a7.7 7.7 0 0 0 1.1-.89.53.53 0 0 0 .03-.67L11.4 9.41l3.06-.76a.52.52 0 0 0 .32-.58&quot; fill-rule=&quot;evenodd&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Thank you for your support.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;/div&gt;&lt;/article&gt;&lt;div class=&quot;hs mg pg zi ap apf zm zp&quot; data-test-id=&quot;post-sidebar&quot; style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; opacity: 0; pointer-events: none; position: fixed; top: 106px; transition: opacity 200ms ease 0s; width: 1680px; will-change: opacity;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am an ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 1192px; min-width: 0px; width: 1192px;&quot;&gt;&lt;div class=&quot;zq ag az&quot; style=&quot;box-sizing: inherit; display: flex; flex-direction: column; width: 131px;&quot;&gt;&lt;div class=&quot;mg&quot; style=&quot;box-sizing: inherit; pointer-events: none;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;div class=&quot;zs qq x&quot; style=&quot;border-bottom: 1px solid rgb(230, 230, 230); box-sizing: inherit; padding-bottom: 28px;&quot;&gt;&lt;a class=&quot;fq fr fs ft fu fv fw fx fy fz ga gb gc gd ge&quot; href=&quot;https://medium.com/analytics-vidhya?source=post_sidebar--------------------------post_sidebar-----------&quot; rel=&quot;noopener&quot; style=&quot;-webkit-tap-highlight-color: transparent; border: inherit; box-sizing: inherit; fill: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;h2 class=&quot;gs iu gg gh ix he re&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; letter-spacing: 0px; line-height: 20px; margin: 0px; word-break: break-word;&quot;&gt;Analytics Vidhya&lt;/h2&gt;&lt;/a&gt;&lt;div class=&quot;kw anp x&quot; style=&quot;box-sizing: inherit; padding-bottom: 20px; padding-top: 2px;&quot;&gt;&lt;h4 class=&quot;gs b gt gh hn anq hm li anr lk ll gi&quot; style=&quot;-webkit-box-orient: vertical; -webkit-line-clamp: 6; box-sizing: inherit; color: #757575; display: -webkit-box; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px; margin: 0px; max-height: 120px; overflow: hidden; text-overflow: ellipsis;&quot;&gt;Analytics Vidhya is a community of Analytics and Data…&lt;/h4&gt;&lt;/div&gt;&lt;div aria-hidden=&quot;false&quot; class=&quot;dv&quot; style=&quot;box-sizing: inherit; display: inline-block;&quot;&gt;&lt;button class=&quot;gs b gt gh gu id ie gv rk gw gx rl fz ij ik rm rn ro fb io ip iq dv ir&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px center; background-repeat: initial; background-size: initial; border-color: rgb(26, 137, 23); border-radius: 4px; border-style: solid; border-width: 1px; color: #1a8917; fill: rgb(26, 137, 23); font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; margin: 0px; overflow: visible; padding: 4px 12px 6px;&quot;&gt;&lt;div class=&quot;ag bc&quot; style=&quot;box-sizing: inherit; display: flex; flex-direction: row;&quot;&gt;Follow&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;zy zz aba ag&quot; style=&quot;box-sizing: inherit; display: flex; margin-bottom: 19px; margin-left: -3px; padding-top: 28px;&quot;&gt;&lt;div class=&quot;ag ar&quot; style=&quot;align-items: center; box-sizing: inherit; display: flex;&quot;&gt;&lt;div class=&quot;x ey abb abc abd abe abf&quot; style=&quot;box-sizing: inherit; margin-right: 5px; position: relative;&quot;&gt;&lt;div class=&quot;&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;div aria-describedby=&quot;1268&quot; aria-hidden=&quot;false&quot; aria-labelledby=&quot;1268&quot; class=&quot;dv&quot; role=&quot;tooltip&quot; style=&quot;box-sizing: inherit; display: inline-block;&quot;&gt;&lt;div class=&quot;fx abg tu abh abi abj abk abl gp abm abn abo&quot; style=&quot;border: 0px; box-sizing: inherit; cursor: not-allowed; fill: rgb(41, 41, 41); opacity: 0.25; outline: 0px; padding: 0px; user-select: none;&quot;&gt;&lt;svg aria-label=&quot;clap&quot; height=&quot;29&quot; width=&quot;29&quot;&gt;&lt;g fill-rule=&quot;evenodd&quot;&gt;&lt;path d=&quot;M13.74 1l.76 2.97.76-2.97zM18.63 2.22l-1.43-.47-.4 3.03zM11.79 1.75l-1.43.47 1.84 2.56zM24.47 14.3L21.45 9c-.29-.43-.69-.7-1.12-.78a1.16 1.16 0 0 0-.91.22c-.3.23-.48.52-.54.84l.05.07 2.85 5c1.95 3.56 1.32 6.97-1.85 10.14a8.46 8.46 0 0 1-.55.5 5.75 5.75 0 0 0 3.36-1.76c3.26-3.27 3.04-6.75 1.73-8.91M14.58 10.89c-.16-.83.1-1.57.7-2.15l-2.5-2.49c-.5-.5-1.38-.5-1.88 0-.18.18-.27.4-.33.63l4.01 4z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M17.81 10.04a1.37 1.37 0 0 0-.88-.6.81.81 0 0 0-.64.15c-.18.13-.71.55-.24 1.56l1.43 3.03a.54.54 0 1 1-.87.61L9.2 7.38a.99.99 0 1 0-1.4 1.4l4.4 4.4a.54.54 0 1 1-.76.76l-4.4-4.4L5.8 8.3a.99.99 0 0 0-1.4 0 .98.98 0 0 0 0 1.39l1.25 1.24 4.4 4.4a.54.54 0 0 1 0 .76.54.54 0 0 1-.76 0l-4.4-4.4a1 1 0 0 0-1.4 0 .98.98 0 0 0 0 1.4l1.86 1.85 2.76 2.77a.54.54 0 0 1-.76.76L4.58 15.7a.98.98 0 0 0-1.4 0 .99.99 0 0 0 0 1.4l5.33 5.32c3.37 3.37 6.64 4.98 10.49 1.12 2.74-2.74 3.27-5.54 1.62-8.56l-2.8-4.94z&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;x abp abq abr abs abt abu abv&quot; style=&quot;box-sizing: inherit; margin-top: 5px;&quot;&gt;&lt;div class=&quot;abw&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;h4 class=&quot;gs b gt gh gi&quot; style=&quot;box-sizing: inherit; color: #757575; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 20px; margin: 0px;&quot;&gt;&lt;button class=&quot;fq fr fs ft fu fv fw fx fy fz ga gb gc gd ge&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: inherit; box-sizing: inherit; fill: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0px; overflow: visible; padding: 0px; text-align: left;&quot;&gt;3&lt;/button&gt;&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;zz x&quot; style=&quot;box-sizing: inherit; margin-bottom: 19px;&quot;&gt;&lt;button class=&quot;tb tu fx&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-color: initial; border-style: initial; border-width: 0px; box-sizing: inherit; cursor: pointer; margin: 0px; overflow: visible; padding: 0px;&quot;&gt;&lt;div class=&quot;qz ag ar bc&quot; style=&quot;align-items: center; box-sizing: inherit; display: flex; flex-direction: row; padding-right: 4px;&quot;&gt;&lt;svg aria-label=&quot;responses&quot; class=&quot;gp&quot; height=&quot;25&quot; width=&quot;25&quot;&gt;&lt;path d=&quot;M19.07 21.12a6.33 6.33 0 0 1-3.53-1.1 7.8 7.8 0 0 1-.7-.52c-.77.21-1.57.32-2.38.32-4.67 0-8.46-3.5-8.46-7.8C4 7.7 7.79 4.2 12.46 4.2c4.66 0 8.46 3.5 8.46 7.8 0 2.06-.85 3.99-2.4 5.45a6.28 6.28 0 0 0 1.14 2.59c.15.21.17.48.06.7a.69.69 0 0 1-.62.38h-.03zm0-1v.5l.03-.5h-.03zm-3.92-1.64l.21.2a6.09 6.09 0 0 0 3.24 1.54 7.14 7.14 0 0 1-.83-1.84 5.15 5.15 0 0 1-.16-.75 2.4 2.4 0 0 1-.02-.29v-.23l.18-.15a6.6 6.6 0 0 0 2.3-4.96c0-3.82-3.4-6.93-7.6-6.93-4.19 0-7.6 3.11-7.6 6.93 0 3.83 3.41 6.94 7.6 6.94.83 0 1.64-.12 2.41-.35l.28-.08z&quot; fill-rule=&quot;evenodd&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;div class=&quot;x ey abz aca acb acc acd ace acf acg&quot; style=&quot;box-sizing: inherit; padding-left: 6px; position: relative;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;div class=&quot;ok&quot; style=&quot;box-sizing: inherit; fill: rgb(61, 61, 61);&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;div aria-describedby=&quot;1269&quot; aria-hidden=&quot;false&quot; aria-labelledby=&quot;1269&quot; class=&quot;dv&quot; role=&quot;tooltip&quot; style=&quot;box-sizing: inherit; display: inline-block;&quot;&gt;&lt;button aria-label=&quot;Bookmark Post&quot; class=&quot;fq fr fs ft fu fv fw fx fy fz ga gb gc gd ge&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: inherit; box-sizing: inherit; fill: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0px; overflow: visible; padding: 0px;&quot;&gt;&lt;svg height=&quot;25&quot; viewbox=&quot;0 0 25 25&quot; width=&quot;25&quot;&gt;&lt;path d=&quot;M19 6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14.66h.01c.01.1.05.2.12.28a.5.5 0 0 0 .7.03l5.67-4.12 5.66 4.13a.5.5 0 0 0 .71-.03.5.5 0 0 0 .12-.29H19V6zm-6.84 9.97L7 19.64V6a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v13.64l-5.16-3.67a.49.49 0 0 0-.68 0z&quot; fill-rule=&quot;evenodd&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;hs mg zi pg zj mi zk zl zm zn&quot; style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; left: 840px; opacity: 0; pointer-events: none; position: fixed; top: calc(133px); transform: translateX(406px); transition: opacity 200ms ease 0s; width: 188px; will-change: opacity;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;&lt;div class=&quot;ee vs ag az ah&quot; style=&quot;box-sizing: inherit; clear: both; display: flex; flex-direction: column; justify-content: center; margin-top: 40px;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;div class=&quot;ans ant oz anu lc anv&quot; style=&quot;background-color: #fafafa; border-top: 3px solid rgb(26, 137, 23); box-sizing: inherit; margin-bottom: 25px; margin-top: 8px; padding: 32px 32px 26px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/1698259258244626226/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/airflow-for-beginners-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1698259258244626226'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1698259258244626226'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/airflow-for-beginners-ii.html' title='Airflow for Beginners — II'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-295930616927806278</id><published>2020-10-31T22:36:00.008-07:00</published><updated>2020-11-01T00:40:31.195-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dbscan"/><category scheme="http://www.blogger.com/atom/ns#" term="dbscan algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="dbscan algorithm example"/><category scheme="http://www.blogger.com/atom/ns#" term="dbscan algorithm in data mining"/><category scheme="http://www.blogger.com/atom/ns#" term="dbscan algorithm pseudocode"/><category scheme="http://www.blogger.com/atom/ns#" term="dbscan algorithm python"/><category scheme="http://www.blogger.com/atom/ns#" term="dbscan algorithm steps"/><category scheme="http://www.blogger.com/atom/ns#" term="implementation in python"/><title type='text'>DBSCAN Clustering Algorithm-with maths</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;DBSCAN is a short-form of&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;D&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;ensity-&lt;/span&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;B&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;ased&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;S&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;patial&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;C&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;lustering of&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;A&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;pplications with&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;N&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;oise. It is an unsupervised algorithm that will take the set of points and make them into some sets which have the same properties. It is based on the density-based clustering and it will mark the outliers also which do not lie in any of the cluster or set.&lt;/span&gt;&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq asz&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 854px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ata vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 584.438px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 584.438px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;734&quot; src=&quot;https://miro.medium.com/max/60/1*A1P4UT8NwQAmWmXGt5RgIw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 584.438px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;854&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;734&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1708/1*A1P4UT8NwQAmWmXGt5RgIw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*A1P4UT8NwQAmWmXGt5RgIw.png 276w, https://miro.medium.com/max/1104/1*A1P4UT8NwQAmWmXGt5RgIw.png 552w, https://miro.medium.com/max/1280/1*A1P4UT8NwQAmWmXGt5RgIw.png 640w, https://miro.medium.com/max/1400/1*A1P4UT8NwQAmWmXGt5RgIw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 584.438px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;854&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;caa9&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;There are some terms that we need to know before we proceed further for algorithm:&lt;/p&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d94c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Density Reachability&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;61af&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;A point “p” is said to be&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;density reachable from a point “q” if point “p” is within ε distance from point “q” and “q” has a sufficient number of points in its neighbors which are within distance ε.&lt;/p&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c665&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Density Connectivity&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7b9c&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;A point “p” and “q” are said to be density connected if there exists a point “r” which has a sufficient number of points in its neighbors and both the points “p” and “q” is within the ε distance. This is a chaining process. So, if “q” is neighbor of “r”, “r” is neighbor of “s”, “s” is neighbor of “t” which in turn is neighbor of “p” implies that “q” is neighbor of “p”.&lt;/p&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;75d3&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;Algorithm&lt;/span&gt;&lt;/h1&gt;&lt;p class=&quot;wt wu uk ot b ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm xn xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;ef9f&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;Let X = {x1, x2, x3, …, xn} be the set of data points. DBSCAN requires two parameters: ε (eps) and the minimum number of points required to form a cluster (minPts).&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0522&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;1) Start with an arbitrary starting point that has not been visited.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;927c&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;2) Extract the neighborhood of this point using ε (All points which are within the ε distance are neighborhood).&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0be8&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;3) If there are sufficient neighborhoods around this point then the clustering process starts and the point is marked as visited else this point is labeled as noise (Later this point can become the part of the cluster).&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b613&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;4) If a point is found to be a part of the cluster then its ε neighborhood is also the part of the cluster and the above procedure from step 2 is repeated for all ε neighborhood points. This is repeated until all points in the cluster is determined.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;927b&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;5) A new unvisited point is retrieved and processed, leading to the discovery of a further cluster or noise.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b68f&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;6) This process continues until all points are marked as visited.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;ba27&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Advantages&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2a26&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;1. It does not require a-priori specification of the number of clusters.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;2. Able to identify noise data while clustering.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;3. DBSCAN algorithm is able to find arbitrarily size and arbitrarily shaped clusters.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;76b1&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Disadvantages&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7972&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;DBSCAN algorithm fails in case of varying density clusters.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5cd6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Fails in case of neck type of dataset.&lt;/li&gt;&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/295930616927806278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/dbscan-clustering-algorithm-with-maths.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/295930616927806278'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/295930616927806278'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/dbscan-clustering-algorithm-with-maths.html' title='DBSCAN Clustering Algorithm-with maths'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-5315794060280992890</id><published>2020-10-31T22:35:00.003-07:00</published><updated>2020-11-01T00:41:34.420-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="airflow apache"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow api"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow aws"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow dag"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow github"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow macros"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow python"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow scheduler"/><category scheme="http://www.blogger.com/atom/ns#" term="airflow tutorial"/><title type='text'>Airflow for Beginners — I</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq arp&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1630px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;arq vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 293.688px;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;704&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/3260/1*zmp-3wOoC0HnxdDzarpPPA.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*zmp-3wOoC0HnxdDzarpPPA.png 276w, https://miro.medium.com/max/1104/1*zmp-3wOoC0HnxdDzarpPPA.png 552w, https://miro.medium.com/max/1280/1*zmp-3wOoC0HnxdDzarpPPA.png 640w, https://miro.medium.com/max/1400/1*zmp-3wOoC0HnxdDzarpPPA.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 293.688px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1630&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;aecb&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;PHASE:- 1 ( Introduction and Installation )&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;88f9&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Introduction&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f90a&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Apache Airflow is a platform for programmatically author schedule and monitor workflows. It is one of the best workflow management system.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c03e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Airflow was originally developed by Airbnb to manage its data-based operations with a fast-growing data set. Airflow is undergoing incubation at Apache Software foundation as Airbnb has decided to open source it under Apache certification.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b495&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Apache airflow makes your workflow a little bit simple and organized by allowing you to divide it into small independent task units. Easy to organize and easy to schedule. Your entire workflow can be converted into a DAG with Airflow.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;42a5&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Once your workflows are defined by your code it becomes more maintainable. With the feature-rich user interface your workflow pipelines can be easily visualized, monitored and troubleshot.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a06e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Airflow also provides a rich set of command-line utilities that can be used to perform complex operations on DAG.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1138&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;In short, airflow is a platform where you can see and schedule your run for the script.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8320&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Installation&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;29ca&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;you can simply instaled the airflow by PIP.&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; color: rgba(0, 0, 0, 0.8); margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8de2&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;pip install apache-airflow&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;36f3&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;so this command will installed your airflow local.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;54ba&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;To start the airflow run the following command and you are set up with airflow.&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; color: rgba(0, 0, 0, 0.8); margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5db3&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;airflow initdb   # initating the database for storing the DAGs&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9b50&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;airflow scheduler  # initating the scheduler for triggering on scheduled time&lt;/span&gt;&lt;span class=&quot;he ars wc uk art b gg arw arx ary arz asa arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4640&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: 1.91em; white-space: pre-wrap;&quot;&gt;airflow webserver  # initating the webserver for UI&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b010&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;after this execution, your airflow is fully setup. You can find it in:&lt;/p&gt;&lt;pre class=&quot;yk yl ym yn yo arr aem qs&quot; style=&quot;background: rgb(242, 242, 242); box-sizing: inherit; color: rgba(0, 0, 0, 0.8); margin-bottom: 0px; margin-top: 56px; overflow-x: auto; padding: 20px;&quot;&gt;&lt;span class=&quot;he ars wc uk art b gg aru arv x ahr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1aea&quot; style=&quot;box-sizing: inherit; color: #292929; display: block; font-family: Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 16px; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: -0.09em; margin-top: -0.09em; white-space: pre-wrap;&quot;&gt;localhost:8080&lt;/span&gt;&lt;/pre&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d192&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;so now you have fully set up with airflow and about execution and creating DAG, we will see in the&amp;nbsp;next article.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9391&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;asd ey ase vy&quot; style=&quot;box-sizing: inherit; float: right; height: 0px; position: relative; width: 0px;&quot;&gt;&lt;span class=&quot;x&quot; style=&quot;box-sizing: inherit; display: block;&quot;&gt;&lt;span class=&quot;y ab z asf asg abh abl&quot; style=&quot;box-sizing: inherit; font-size: 0px; left: 0px; line-height: 0; position: absolute; top: 0px; user-select: none;&quot;&gt;&lt;button class=&quot;fq hf fs ft fu fv fw fx fy hq fz&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: inherit; box-sizing: inherit; fill: rgb(117, 117, 117); font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0px; outline: none; overflow: visible; padding: 0px;&quot;&gt;&lt;svg aria-label=&quot;View 1 Private Notes&quot; height=&quot;19&quot; width=&quot;19&quot;&gt;&lt;path d=&quot;M14.78 8.07a8.68 8.68 0 0 0-.43-1.38.48.48 0 0 0-.58-.27l-3.12.77V4.03c0-.24-.2-.48-.43-.5a7.23 7.23 0 0 0-1.38 0c-.24.02-.43.26-.43.5V7.2L5.3 6.41a.48.48 0 0 0-.58.27c-.18.45-.33.92-.43 1.39-.05.24.1.5.32.58l3.06.75-1.98 2.96c-.14.2-.13.5.04.67.34.33.7.63 1.1.9.2.13.48.07.62-.12l2.1-3.12 2.08 3.12c.15.19.43.25.63.11a7.7 7.7 0 0 0 1.1-.89.53.53 0 0 0 .03-.67L11.4 9.41l3.06-.76a.52.52 0 0 0 .32-.58&quot; fill-rule=&quot;evenodd&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/button&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;THANKS FOR YOUR SUPPORT&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/5315794060280992890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/airflow-for-beginners-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/5315794060280992890'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/5315794060280992890'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/airflow-for-beginners-i.html' title='Airflow for Beginners — I'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-6792724091915453656</id><published>2020-10-31T22:34:00.006-07:00</published><updated>2020-11-01T00:51:09.638-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="overfitting"/><category scheme="http://www.blogger.com/atom/ns#" term="overfitting and underfitting bias"/><category scheme="http://www.blogger.com/atom/ns#" term="overfitting and underfitting graph"/><category scheme="http://www.blogger.com/atom/ns#" term="overfitting and underfitting in neural networks"/><category scheme="http://www.blogger.com/atom/ns#" term="overfitting and underfitting machine learning"/><category scheme="http://www.blogger.com/atom/ns#" term="underfitting"/><title type='text'>Overfitting and Underfitting ( BUG IN ML MODELS )</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;figure class=&quot;vr vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 33px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq ara&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1664px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;arb vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 264.797px;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;648&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/3328/1*i5BamDkqO1dnGxBVaTHtHw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*i5BamDkqO1dnGxBVaTHtHw.png 276w, https://miro.medium.com/max/1104/1*i5BamDkqO1dnGxBVaTHtHw.png 552w, https://miro.medium.com/max/1280/1*i5BamDkqO1dnGxBVaTHtHw.png 640w, https://miro.medium.com/max/1400/1*i5BamDkqO1dnGxBVaTHtHw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 264.797px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1664&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0b33&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The worst performance of the ML( Machine Learning ) Models is due to the Overfitting and Underfittin&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;g&lt;/span&gt;&amp;nbsp;largely. As in the past, we discovered that the generalization is the idea that every model should do but the overfitting and underfitting will go along with them so we generally have to more aware that the model should not do the overfitting and underfitting. A vital factor in determining the objective function from the training data is how well the model generalizes to new data. Generalization is important because the data we receive is only a sample, it is incomplete and noisy.&lt;/p&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6561&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Overfitting:-&lt;/h1&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq arc&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1228px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ard vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 596.938px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 596.938px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;1078&quot; src=&quot;https://miro.medium.com/max/60/1*_CKI7yCmdn4h2Mancls3ow.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 596.938px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1228&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;1078&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2456/1*_CKI7yCmdn4h2Mancls3ow.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*_CKI7yCmdn4h2Mancls3ow.png 276w, https://miro.medium.com/max/1104/1*_CKI7yCmdn4h2Mancls3ow.png 552w, https://miro.medium.com/max/1280/1*_CKI7yCmdn4h2Mancls3ow.png 640w, https://miro.medium.com/max/1400/1*_CKI7yCmdn4h2Mancls3ow.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 596.938px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1228&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e944&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Overfitting is the bug in the ML which means that the model trains itself very much on the training data set.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6731&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Overfitting happens when a model learns the detail and noise in the training data to the extent that it negatively influences the appearance of the model on brand-new data. This actually gives us the idea that the noise in the training data set is picked up and learned as ideas by the model. The dilemma is that these ideas do not apply to the test data set and negatively impact the model’s ability to generalize.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a901&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Overfitting is more likely with nonparametric and nonlinear models that have more flexibility when learning a target function. There are many models that can face this problem for e.g. Random forest.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e67f&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For example, decision trees are a nonparametric machine learning algorithm that is very flexible and is subject to overfitting training data. This problem can be approached by clipping a tree after it has learned in order to remove some of the detail it has picked up. This problem can be seen many times in the decision trees.&lt;/p&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1aef&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Underfitting in Machine Learning&lt;/h1&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;pp pq are&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 458px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;arf vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 410px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 410px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 458px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;410&quot; src=&quot;https://miro.medium.com/max/60/1*SNqkq0LPU-oPxGqeIS7_Dg.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 410px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 458px;&quot; width=&quot;458&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;410&quot; sizes=&quot;458px&quot; src=&quot;https://miro.medium.com/max/916/1*SNqkq0LPU-oPxGqeIS7_Dg.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*SNqkq0LPU-oPxGqeIS7_Dg.png 276w, https://miro.medium.com/max/916/1*SNqkq0LPU-oPxGqeIS7_Dg.png 458w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 410px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 458px;&quot; width=&quot;458&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4bfe&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Overfitting is the bug in the ML which means that the model can’t generalize to the new data and can not fit the training data set also.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5137&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;An underfit machine learning model is not the best model and will be clear as it will have poor performance on the training data and will also perform worst on the test data set.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;51d0&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Underfitting is often not discussed as it is easy to detect given a good performance metric. The solution is to move on and try alternate machine learning algorithms. Nevertheless, it does provide a good contrast to the problem of overfitting. So my only suggestion for you is to try some new model and it will help many times.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7fcb&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;As we saw the defination of both underfitting and overfitting and we are sure that the underfit is not that big threat it is solvable by just trying the new model but the overfit is major bug in the machine learning models so to resolve this bug there are some few tips from my side to yours.&lt;/p&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d642&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Overfitting — Solution for this bug&lt;/h1&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq arg&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1358px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;arh vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 451.656px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 451.656px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;902&quot; src=&quot;https://miro.medium.com/max/60/1*A4NwCasF6xxvR_nFQ0GzRQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 451.656px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1358&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;902&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2716/1*A4NwCasF6xxvR_nFQ0GzRQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*A4NwCasF6xxvR_nFQ0GzRQ.png 276w, https://miro.medium.com/max/1104/1*A4NwCasF6xxvR_nFQ0GzRQ.png 552w, https://miro.medium.com/max/1280/1*A4NwCasF6xxvR_nFQ0GzRQ.png 640w, https://miro.medium.com/max/1400/1*A4NwCasF6xxvR_nFQ0GzRQ.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 451.656px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1358&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0e2c&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Overfitting is such a problem because the evaluation of machine learning algorithms on training data is different from the evaluation of the data set that we actually want the model to perform well.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d5de&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;There are two powerful procedures that one can use when evaluating machine learning algorithms to smash overfitting:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d202&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Resampling technique.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5c04&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Validation dataset.&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;138f&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The common hot resampling technique is k-fold cross-validation. It allows us to train and test your model k-times on different subsets of training data and build up an estimate of the performance of a machine learning model on unseen data.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;74c4&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;A validation dataset is simply a subset of your training data that you hold back from your machine learning algorithms until the very end of your project. After you have selected and tuned your machine learning algorithms on your training dataset you can evaluate the learned models on the validation dataset to get a final objective idea of how the models might perform on unseen data.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3c75&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;I hope this will help you in understanding the biggest bug in the machine learning model and also help you in to smash it. #bug_smash&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/6792724091915453656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/overfitting-and-underfitting-bug-in-ml.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/6792724091915453656'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/6792724091915453656'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/overfitting-and-underfitting-bug-in-ml.html' title='Overfitting and Underfitting ( BUG IN ML MODELS )'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-1199418937041310592</id><published>2020-10-31T22:33:00.009-07:00</published><updated>2020-11-01T00:46:19.025-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy logic"/><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy sets"/><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy sets and fuzzy logic"/><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy sets applications"/><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy sets computer science"/><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy sets definition"/><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy sets examples"/><category scheme="http://www.blogger.com/atom/ns#" term="fuzzy sets theory"/><title type='text'>Fuzzy sets &amp; Fuzzy C-Means Clustering Algorithm</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;All the classification algorithms that we studied in the past, most of them are based on soft-based computation. Soft based computation means as we are giving the prediction from algorithm that point j belongs to which set i ( where i can take any value from 0 to number of sets) but there is category also existed which we called fuzzy-based computation which basically means that the if there is point i and n sets it is not compulsory that it will belong to only one set but there is something called&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-weight: 700; letter-spacing: -0.003em;&quot;&gt;membership function&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;which says that the point can belong to multiple sets. In nutshell, the output is basically the number which indicated the probability of the point to belong to a particular set.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b35d&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Actually, if you can feel the difference between the simple set and the fuzzy set then you are on the right track otherwise in short note&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;em class=&quot;yd&quot; style=&quot;box-sizing: inherit;&quot;&gt;you can say simple set includes the elements which will belong to only one class but the fuzzy sets can contain the element which may belong to multiple sets&lt;/em&gt;&lt;/span&gt;. This rule is called fuzzy logic.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3afe&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For e.g. let us take the example of the height of the person you can classify into two classes TALL or SHORT but now think in the terms of the&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8da8&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Soft based computation: You will say that if the input is greater than some threshold than TALL otherwise short.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bfb3&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Fuzzy based computation: If the input is very far from the threshold then we are very sure about the output But think like if there is input which is very near to threshold than practically you can not say it as TALL or SHORT then their fuzzy logic comes in the picture which will tell you about the probabilities. So the membership function will look like:&lt;/li&gt;&lt;/ol&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq aqq&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 1064px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aqr vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 360.438px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 360.438px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;564&quot; src=&quot;https://miro.medium.com/max/60/1*IFv-89P1jsugeF8e4eGfdw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 360.438px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;1064&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;564&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/2128/1*IFv-89P1jsugeF8e4eGfdw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*IFv-89P1jsugeF8e4eGfdw.png 276w, https://miro.medium.com/max/1104/1*IFv-89P1jsugeF8e4eGfdw.png 552w, https://miro.medium.com/max/1280/1*IFv-89P1jsugeF8e4eGfdw.png 640w, https://miro.medium.com/max/1400/1*IFv-89P1jsugeF8e4eGfdw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 360.438px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;1064&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a7c9&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;So by now, I think you must be very clear about the fuzzy sets.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7354&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Before getting into the FCM algorithm let us understand one more thing called Fuzzy-c partition. The fuzzy-c partition is like to partition the set&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;S&amp;nbsp;&lt;/span&gt;into&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;C&lt;/span&gt;&amp;nbsp;classes. Where the fuzzy-c partition is defined by tuple&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;(µ, S)&amp;nbsp;&lt;/span&gt;where µ represents the matrix of size (i*j) i is the number of points and j is the number of classes. The&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;µ(i,j)&amp;nbsp;&lt;/span&gt;represents the membership value of point i for the jth class. There are some rules that each class has to follow to be the class of the fuzzy-c partition.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e4d8&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The rules go likes:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0f3c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Every row in the matrix sums should to one.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6e07&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Every column in the matrix sums should less than the total number of points in the set.&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;09ac&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;So as we are done with setting up the base for going fully in the fuzzy c means algorithm. A little bit interesting fact about it is Fuzzy c-means (FCM) clustering was developed by J.C. Dunn in 1973, and improved by J.C. Bezdek in 1981.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;90a0&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Now the algorithm is similar to the k-means but it works differently.&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;cefa&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Choose a number of clusters.&lt;/li&gt;&lt;/ol&gt;&lt;ul class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3f6f&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Assign coefficients randomly to each data point for being in the clusters.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2aea&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Repeat until the algorithm has converged.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2800&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Compute the centroid for each cluster.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;70a7&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;So the fuzzy-c means algorithm will not overfit the data for clustering like the k-means algorithm it will mark the data point to multiple clusters instead of the one cluster which will be more helpful than giving the point to the one cluster.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;3e35&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Why we should use Fuzzy C instead of k means:&lt;/span&gt;&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq aqs&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 822px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aqt vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 365.641px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 365.641px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;442&quot; src=&quot;https://miro.medium.com/max/60/1*nWG8K0OccznAmOke8mI99Q.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 365.641px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;822&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;442&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1644/1*nWG8K0OccznAmOke8mI99Q.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*nWG8K0OccznAmOke8mI99Q.png 276w, https://miro.medium.com/max/1104/1*nWG8K0OccznAmOke8mI99Q.png 552w, https://miro.medium.com/max/1280/1*nWG8K0OccznAmOke8mI99Q.png 640w, https://miro.medium.com/max/1400/1*nWG8K0OccznAmOke8mI99Q.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 365.641px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;822&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e5fe&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The main reason it works equal to the k means algorithm but the only thing that differentiates it from the others is that it will be the best to differentiate the point which can be assigned to multiple clusters.&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq aqu&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 772px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aqv vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 428.078px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 428.078px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;486&quot; src=&quot;https://miro.medium.com/max/60/1*TUHOcAC5CzEqHB9Uadmpow.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 428.078px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;772&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;486&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1544/1*TUHOcAC5CzEqHB9Uadmpow.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*TUHOcAC5CzEqHB9Uadmpow.png 276w, https://miro.medium.com/max/1104/1*TUHOcAC5CzEqHB9Uadmpow.png 552w, https://miro.medium.com/max/1280/1*TUHOcAC5CzEqHB9Uadmpow.png 640w, https://miro.medium.com/max/1400/1*TUHOcAC5CzEqHB9Uadmpow.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 428.078px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;772&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5a21&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;I hope you guys learned from this and if not, please feel free to ask questions.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0b25&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Thanks.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/1199418937041310592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/fuzzy-sets-fuzzy-c-means-clustering.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1199418937041310592'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/1199418937041310592'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/fuzzy-sets-fuzzy-c-means-clustering.html' title='Fuzzy sets &amp; Fuzzy C-Means Clustering Algorithm'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-6470038840699290861</id><published>2020-10-31T22:33:00.007-07:00</published><updated>2020-11-01T00:45:07.624-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="feature selection"/><category scheme="http://www.blogger.com/atom/ns#" term="feature selection algorithms"/><category scheme="http://www.blogger.com/atom/ns#" term="feature selection data"/><category scheme="http://www.blogger.com/atom/ns#" term="feature selection in ml"/><category scheme="http://www.blogger.com/atom/ns#" term="feature selection python"/><category scheme="http://www.blogger.com/atom/ns#" term="feature selection r"/><category scheme="http://www.blogger.com/atom/ns#" term="feature selection random forest"/><category scheme="http://www.blogger.com/atom/ns#" term="feature selection regression"/><title type='text'>Feature Selection — (Exploration Study)</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;These days there is a hype in the world that if one has more features then we have better discrimination in the model but this hypothesis will not hold in all the situations. Actually the performance of the model vs no of features will decrease when the number of features increases and it will look like&lt;/span&gt;&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq aqy&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 928px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;aqz vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 407.406px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 407.406px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;556&quot; src=&quot;https://miro.medium.com/max/60/1*Bcrqg5HEf3lRvPodGHe7qg.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 407.406px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;928&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;556&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1856/1*Bcrqg5HEf3lRvPodGHe7qg.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*Bcrqg5HEf3lRvPodGHe7qg.png 276w, https://miro.medium.com/max/1104/1*Bcrqg5HEf3lRvPodGHe7qg.png 552w, https://miro.medium.com/max/1280/1*Bcrqg5HEf3lRvPodGHe7qg.png 640w, https://miro.medium.com/max/1400/1*Bcrqg5HEf3lRvPodGHe7qg.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 407.406px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;928&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;849b&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;As in Instance-Based learning methods (like k-means) where features are very important in the case of k-means extra features will add noise in the distance calculation. To handle this problem we should have to avoid irrelevant features while selecting the features because they will add the noise to the model learning. These extra features will generally affect the performance when we have a limited training dataset. In the data science world, we call this a&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;curse of dimensionality&lt;/span&gt;&lt;/p&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0a56&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Curse of dimensionality in simple words is when we have training dataset with large number of training features and more computational resource to learn.&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;101b&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The only solution to this big threat is feature reduction. There are two ways to do feature reduction&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;dc95&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Feature Selection&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9fa9&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Feature Extraction&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0512&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;In this module, we are going to explore the feature selection method of feature reduction. The feature selection is the way in which we have to do select the feature set from all the features such that it will be a subset of the bigger one.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;72a5&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;There are 2^n possibilities of the feature reduction set. If n is the size of the features set. For starting this procedure you have to first create the dataset in which all the features are highly uncorrelated.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;8acd&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Feature Selection:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e0d1&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;To do the process there are two ways exists:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9758&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Forward Selection:&amp;nbsp;&lt;/span&gt;In this, we will start with the empty feature list and we will try each feature combination and select the best combination.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fe0a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Backward Selection:&amp;nbsp;&lt;/span&gt;In this, we will start with the full feature list and we will try each feature combination and select the best combination.&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c649&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;As till now, we are working with the multiple combinations of the features and trying for optimization of the model. we can use the feature by feature and give them score then select those feature which will clear the cutoff those feature will be the best for the optimum solution/model.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;418c&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;There are many ways to give score when we are trying the single wise features which will help to select the best features which are :&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1f78&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Pearson correlation coefficient&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;f883&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;F-score&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;de66&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Chi-square&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;96ce&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Signal to noise ration&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;cfd9&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;mutual information&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;9a49&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;These methods will help you to select the features which are really useful.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;15f3&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;I hope all this will help you to select the feature space and built the finest model.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/6470038840699290861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/feature-selection-exploration-study.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/6470038840699290861'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/6470038840699290861'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/feature-selection-exploration-study.html' title='Feature Selection — (Exploration Study)'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-4464108594447082739</id><published>2020-10-31T22:32:00.005-07:00</published><updated>2020-11-01T00:49:11.671-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="learn machine learning ai"/><category scheme="http://www.blogger.com/atom/ns#" term="learn machine learning algorithms"/><category scheme="http://www.blogger.com/atom/ns#" term="learn machine learning free"/><category scheme="http://www.blogger.com/atom/ns#" term="learn machine learning from scratch"/><category scheme="http://www.blogger.com/atom/ns#" term="learn machine learning online"/><category scheme="http://www.blogger.com/atom/ns#" term="learn machine learning python"/><title type='text'>How to be a HERO in Machine Learning/Data Science Competitions</title><content type='html'>&lt;article style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;section class=&quot;re rf mk sh uh&quot; style=&quot;box-sizing: inherit; overflow-wrap: break-word; word-break: break-word;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am ui ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 680px; min-width: 0px; width: 680px;&quot;&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d847&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;At present to master machine learning models one has to participate in the competition which is appearing in various platforms. So how somebody who is new to ml can become a&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;hero&lt;/span&gt;&amp;nbsp;from&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;zero&lt;/span&gt;. The guideline is in this article.&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq anj&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 974px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ank vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 684.188px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 684.188px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;980&quot; src=&quot;https://miro.medium.com/max/60/1*x02B8b7IfWJzba3SBXtUKw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 684.188px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;974&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;980&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/1948/1*x02B8b7IfWJzba3SBXtUKw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*x02B8b7IfWJzba3SBXtUKw.png 276w, https://miro.medium.com/max/1104/1*x02B8b7IfWJzba3SBXtUKw.png 552w, https://miro.medium.com/max/1280/1*x02B8b7IfWJzba3SBXtUKw.png 640w, https://miro.medium.com/max/1400/1*x02B8b7IfWJzba3SBXtUKw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 684.188px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;974&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;96f4&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;The idea for this is not too hard. Just patience and some hard work are required. I will take an example of a Competition that is just finished within top 10. So the competition generally gives you the problem in which some of the features are hidden because they want you to&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;explore the data&lt;/span&gt;&amp;nbsp;and come up with the feature that explains the target value. By exploring I mean to say the few things:&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b021&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Look at the data. Get the sense of the data.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7846&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Find the correlation of all features with a target value.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e4d5&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Try new features made up of existing features.&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d7de&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Exploration needs some&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&amp;nbsp;cleaning of the data&lt;/span&gt;&amp;nbsp;also. Because in general, the host will add the noise into the data so that it becomes a trouble for us to achieve good accuracy. By cleaning I mean&lt;/p&gt;&lt;ol class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fb8e&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;Trading with NaN values.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;19cb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Find and remove outliers from training.&lt;/li&gt;&lt;/ol&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;pp pq anl&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 504px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;anm vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 488px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 488px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 504px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;488&quot; src=&quot;https://miro.medium.com/max/60/1*IQ0mbKS5VvEo_loulyFdYQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 488px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 504px;&quot; width=&quot;504&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;488&quot; sizes=&quot;504px&quot; src=&quot;https://miro.medium.com/max/1008/1*IQ0mbKS5VvEo_loulyFdYQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*IQ0mbKS5VvEo_loulyFdYQ.png 276w, https://miro.medium.com/max/1008/1*IQ0mbKS5VvEo_loulyFdYQ.png 504w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 488px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 504px;&quot; width=&quot;504&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c273&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;One of the most essential steps is to select the&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;features for training&lt;/span&gt;. To select the features one should know the correlation and how to generate the new features which are extremely impactful. These features can be mean of some features, result by adding some features, etc. There are many ways people can look at this.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bdc8&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Then the last part but not the least is to select the model. By selecting the model not means just take some model and train it. But the most important part is to train the model with some good value of its parameters. Because I saw that a little tweak in parameters will let you achieve high accuracy.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fddd&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For beginners:&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;1- Start learning the concepts of math and statistics.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;2- Learn programming tools for data science either R or Python.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;3- Learn Machine learning algorithms (part 1)&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;010c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;And here are the resources for the previous list:&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;Descriptive Statistics from Udacity:&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://www.udacity.com/course/intro-to-descriptive-statistics--ud827&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;https://www.udacity.com/course/intro-to-descriptive-statistics--ud827&lt;/a&gt;&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;A good statistics book (Optional):&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;http://onlinestatbook.com/2/index.html&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;http://onlinestatbook.com/2/index.html&lt;/a&gt;&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;Introduction to Probabilities course from EDx:&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://www.edx.org/course/introduction-probability-science-mitx-6-041x-2&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;https://www.edx.org/course/introduction-probability-science-mitx-6-041x-2&lt;/a&gt;&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;Introduction to Probability book:&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://www.stat.berkeley.edu/~aldous/134/grinstead.pdf&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;https://www.stat.berkeley.edu/~aldous/134/grinstead.pdf&lt;/a&gt;&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;Intro to Inferential Statistics course from Udacity:&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://www.udacity.com/course/intro-to-inferential-statistics--ud201&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;https://www.udacity.com/course/intro-to-inferential-statistics--ud201&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;edf6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;For professionals:&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;1- Learn the concepts of Deep learning and build at least one project.&lt;br style=&quot;box-sizing: inherit;&quot; /&gt;2- Learn Data Visualization&lt;/p&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bd24&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; letter-spacing: 0px; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Recommended Resources&lt;/h1&gt;&lt;ul class=&quot;&quot; style=&quot;box-sizing: inherit; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm xn xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4903&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 0.86em; padding-left: 0px;&quot;&gt;Documentation!&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://pandas.pydata.org/pandas-docs/stable/&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;Pandas&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;http://scikit-learn.org/stable/documentation.html&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;Scikit-Learn&lt;/a&gt;&amp;nbsp;both have extensive documentation with many interesting discussions.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e297&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For more information about Kaggle&#39;s success stories, I recommend the&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;http://blog.kaggle.com/&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;Kaggle blog&lt;/a&gt;, where they frequently interview competition winners regarding their approach and methods.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;bfa4&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For detailed summaries of DataFrames, I recommend checking out&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://github.com/mouradmourafiq/pandas-summary&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;pandas-summary&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://github.com/pandas-profiling/pandas-profiling&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;pandas-profiling&lt;/a&gt;.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0174&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;For an excellent explanation of more advanced Random Forest usage, I recommend the&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://towardsdatascience.com/intuitive-interpretation-of-random-forest-2238687cae45&quot; rel=&quot;noopener&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;Intuitive Interpretation of Random Forest&lt;/a&gt;.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq alu zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1a52&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;Reddit for everything related:&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://www.reddit.com/r/MachineLearning/&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;r/machinelearning&lt;/a&gt;,&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://www.reddit.com/r/learnmachinelearning/&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;r/learnmachinelearning&lt;/a&gt;,&amp;nbsp;&lt;a class=&quot;fq akc&quot; href=&quot;https://www.reddit.com/r/datascience/&quot; rel=&quot;noopener nofollow&quot; style=&quot;-webkit-tap-highlight-color: transparent; box-sizing: inherit;&quot;&gt;r/datascience&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b799&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Here is a glimpse of the result that I achieved after following these steps.&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;box-sizing: inherit; clear: both; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq ann&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2722px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;ano vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 185.359px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 185.359px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;742&quot; src=&quot;https://miro.medium.com/max/60/1*1Ca_LSoxLNb9mBw2lPnUkA.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 185.359px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2722&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;742&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/5444/1*1Ca_LSoxLNb9mBw2lPnUkA.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*1Ca_LSoxLNb9mBw2lPnUkA.png 276w, https://miro.medium.com/max/1104/1*1Ca_LSoxLNb9mBw2lPnUkA.png 552w, https://miro.medium.com/max/1280/1*1Ca_LSoxLNb9mBw2lPnUkA.png 640w, https://miro.medium.com/max/1400/1*1Ca_LSoxLNb9mBw2lPnUkA.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 185.359px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2722&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;13b0&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;I hope these procedures will help you. Let me get a clap if this helps you in some way.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/section&gt;&lt;/div&gt;&lt;/article&gt;&lt;div class=&quot;hs mg pg zi ap apf zm zp&quot; data-test-id=&quot;post-sidebar&quot; style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; opacity: 0; pointer-events: none; position: fixed; top: 106px; transition: opacity 200ms ease 0s; width: 1680px; will-change: opacity;&quot;&gt;&lt;div class=&quot;ag ah&quot; style=&quot;box-sizing: inherit; display: flex; justify-content: center;&quot;&gt;&lt;div class=&quot;ai aj ak al am an ao ap&quot; style=&quot;box-sizing: inherit; margin: 0px 64px; max-width: 1192px; min-width: 0px; width: 1192px;&quot;&gt;&lt;div class=&quot;zq ag az&quot; style=&quot;box-sizing: inherit; display: flex; flex-direction: column; width: 131px;&quot;&gt;&lt;div class=&quot;mg&quot; style=&quot;box-sizing: inherit; pointer-events: none;&quot;&gt;&lt;div style=&quot;box-sizing: inherit;&quot;&gt;&lt;div class=&quot;zs qq x&quot; style=&quot;border-bottom: 1px solid rgb(230, 230, 230); box-sizing: inherit; padding-bottom: 28px;&quot;&gt;&lt;a class=&quot;fq fr fs ft fu fv fw fx fy fz ga gb gc gd ge&quot; href=&quot;https://medium.com/analytics-vidhya?source=post_sidebar--------------------------post_sidebar-----------&quot; rel=&quot;noopener&quot; style=&quot;-webkit-tap-highlight-color: transparent; border: inherit; box-sizing: inherit; fill: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0px; padding: 0px; text-decoration-line: none;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/4464108594447082739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-be-hero-in-machine-learningdata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/4464108594447082739'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/4464108594447082739'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-to-be-hero-in-machine-learningdata.html' title='How to be a HERO in Machine Learning/Data Science Competitions'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-3463591500852056293</id><published>2020-10-31T22:31:00.002-07:00</published><updated>2020-11-01T00:42:57.402-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="neural network"/><category scheme="http://www.blogger.com/atom/ns#" term="neural network algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="neural network architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="neural network function"/><category scheme="http://www.blogger.com/atom/ns#" term="neural network machine learning"/><category scheme="http://www.blogger.com/atom/ns#" term="neural network model"/><category scheme="http://www.blogger.com/atom/ns#" term="neural network python"/><category scheme="http://www.blogger.com/atom/ns#" term="neural networks and deep learning"/><title type='text'>Neural Network theory and implementation for Regression</title><content type='html'>&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e46d&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;508&quot; sizes=&quot;583px&quot; src=&quot;https://miro.medium.com/max/1166/1*WNxN2ArLaGt0-Rm3tzWw1g.jpeg&quot; srcset=&quot;https://miro.medium.com/max/552/1*WNxN2ArLaGt0-Rm3tzWw1g.jpeg 276w, https://miro.medium.com/max/1104/1*WNxN2ArLaGt0-Rm3tzWw1g.jpeg 552w, https://miro.medium.com/max/1166/1*WNxN2ArLaGt0-Rm3tzWw1g.jpeg 583w&quot; style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: medium; height: 444px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 583px;&quot; width=&quot;667&quot; /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e46d&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;Introduction and background&lt;/span&gt;&lt;/h1&gt;&lt;p class=&quot;wt wu uk ot b ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm xn xo xp xq re he xr&quot; data-selectable-paragraph=&quot;&quot; id=&quot;864b&quot; style=&quot;background-color: white; box-sizing: inherit; clear: left; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;x xs xt xu sp xv xw xx xy xz ey&quot; style=&quot;box-sizing: inherit; display: block; float: left; font-size: 66px; line-height: 0.83; margin-right: 12px; padding-top: 7px; position: relative;&quot;&gt;In&lt;/span&gt;this article, we are going to build the regression model from neural networks for predicting the price of a house based on the features. Here is the implementation and the theory behind it. The neural network is basically if you see is derived from the logistic regression, as we know that in the logistic regression:&lt;/p&gt;&lt;blockquote class=&quot;ya yb yc&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wt wu yd ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;afbb&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Formulae for Logistic Regression:&amp;nbsp;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;y = ax+b&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;7746&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;so for every node in each layer, we will apply it and after this output is from the activation function which will have the input from logistic regression and the output is output from the activation function.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;881b&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;So now&amp;nbsp;&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;w&lt;/span&gt;e will implement the neural&amp;nbsp;&lt;mark class=&quot;ahi ahj tb&quot; style=&quot;background-color: rgba(26, 137, 23, 0.1); box-sizing: inherit; color: currentcolor; cursor: pointer;&quot;&gt;network&lt;/mark&gt;&amp;nbsp;with 5 hidden layers.&lt;/p&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6dfd&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;&lt;span class=&quot;fw&quot; style=&quot;box-sizing: inherit; font-weight: inherit;&quot;&gt;Implementation&lt;/span&gt;&lt;/h1&gt;&lt;p class=&quot;wt wu uk ot b ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm xn xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;73d7&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 0.86em 0px -0.46em; word-break: break-word;&quot;&gt;1. Import the libraries which we will going to use&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq yj&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2010px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;yt vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 146.812px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 146.812px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;434&quot; src=&quot;https://miro.medium.com/max/60/1*6m8EY_MwUBySpJTNnm6jxw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 146.812px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2010&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;434&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4020/1*6m8EY_MwUBySpJTNnm6jxw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*6m8EY_MwUBySpJTNnm6jxw.png 276w, https://miro.medium.com/max/1104/1*6m8EY_MwUBySpJTNnm6jxw.png 552w, https://miro.medium.com/max/1280/1*6m8EY_MwUBySpJTNnm6jxw.png 640w, https://miro.medium.com/max/1400/1*6m8EY_MwUBySpJTNnm6jxw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 146.812px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2010&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;1a84&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;2. Import the dataset and check the types of the columns&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq yu&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2012px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;yv vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 404.203px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 404.203px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;1196&quot; src=&quot;https://miro.medium.com/max/60/1*xH2jQp6Myqmg_Ve0u4kKDg.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 404.203px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2012&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;1196&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4024/1*xH2jQp6Myqmg_Ve0u4kKDg.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*xH2jQp6Myqmg_Ve0u4kKDg.png 276w, https://miro.medium.com/max/1104/1*xH2jQp6Myqmg_Ve0u4kKDg.png 552w, https://miro.medium.com/max/1280/1*xH2jQp6Myqmg_Ve0u4kKDg.png 640w, https://miro.medium.com/max/1400/1*xH2jQp6Myqmg_Ve0u4kKDg.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 404.203px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2012&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;437e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;3. Now build your training and test set from the dataset.&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq yu&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2012px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;yw vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 131.797px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 131.797px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;390&quot; src=&quot;https://miro.medium.com/max/60/1*KihZhPrcHu5XHVV9iyvUMQ.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 131.797px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2012&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;390&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4024/1*KihZhPrcHu5XHVV9iyvUMQ.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*KihZhPrcHu5XHVV9iyvUMQ.png 276w, https://miro.medium.com/max/1104/1*KihZhPrcHu5XHVV9iyvUMQ.png 552w, https://miro.medium.com/max/1280/1*KihZhPrcHu5XHVV9iyvUMQ.png 640w, https://miro.medium.com/max/1400/1*KihZhPrcHu5XHVV9iyvUMQ.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 131.797px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2012&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4d5c&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;4. Now we have our data we will now make the model and I will describe to you how it will predict the price.&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq yu&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2012px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;yx vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 166.281px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 166.281px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;492&quot; src=&quot;https://miro.medium.com/max/60/1*NeLDUvR7V7hqSuCfIYL-rw.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 166.281px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2012&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;492&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4024/1*NeLDUvR7V7hqSuCfIYL-rw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*NeLDUvR7V7hqSuCfIYL-rw.png 276w, https://miro.medium.com/max/1104/1*NeLDUvR7V7hqSuCfIYL-rw.png 552w, https://miro.medium.com/max/1280/1*NeLDUvR7V7hqSuCfIYL-rw.png 640w, https://miro.medium.com/max/1400/1*NeLDUvR7V7hqSuCfIYL-rw.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 166.281px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2012&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;cce8&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Here we are making the neural network 5 hidden layer with activation layer as `relu` and with their nodes in them. The final output is the house price.&lt;/p&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;15ff&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;5. Now we will fit our dataset and then predict the value.&lt;/p&gt;&lt;figure class=&quot;yk yl ym yn yo vs pp pq paragraph-image&quot; style=&quot;background-color: white; box-sizing: inherit; clear: both; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 56px auto 0px;&quot;&gt;&lt;div class=&quot;yp yq ey yr ap ys&quot; role=&quot;button&quot; style=&quot;box-sizing: inherit; cursor: zoom-in; position: relative; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 0s; width: 680px; z-index: auto;&quot; tabindex=&quot;0&quot;&gt;&lt;div class=&quot;pp pq yy&quot; style=&quot;box-sizing: inherit; margin-left: auto; margin-right: auto; max-width: 2014px;&quot;&gt;&lt;div class=&quot;vw x ey cq&quot; style=&quot;background-color: #f2f2f2; box-sizing: inherit; margin: auto; position: relative;&quot;&gt;&lt;div class=&quot;yz vy x&quot; style=&quot;box-sizing: inherit; height: 0px; padding-bottom: 199.203px;&quot;&gt;&lt;div class=&quot;hs vt y z ab ew ap hn vu vv&quot; style=&quot;box-sizing: inherit; height: 199.203px; left: 0px; opacity: 0; overflow: hidden; position: absolute; top: 0px; transform: translateZ(0px); transition: opacity 100ms ease 400ms; width: 680px; will-change: transform;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;y z ab ew ap vz wa gq ahn&quot; height=&quot;590&quot; src=&quot;https://miro.medium.com/max/60/1*sgS7LJ_9IfS3wOo6dQMZoA.png?q=20&quot; style=&quot;box-sizing: inherit; filter: blur(20px); height: 199.203px; left: 0px; position: absolute; top: 0px; transform: scale(1.1); transition: visibility 0ms ease 400ms; vertical-align: middle; visibility: hidden; width: 680px;&quot; width=&quot;2014&quot; /&gt;&lt;/div&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;590&quot; sizes=&quot;700px&quot; src=&quot;https://miro.medium.com/max/4028/1*sgS7LJ_9IfS3wOo6dQMZoA.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*sgS7LJ_9IfS3wOo6dQMZoA.png 276w, https://miro.medium.com/max/1104/1*sgS7LJ_9IfS3wOo6dQMZoA.png 552w, https://miro.medium.com/max/1280/1*sgS7LJ_9IfS3wOo6dQMZoA.png 640w, https://miro.medium.com/max/1400/1*sgS7LJ_9IfS3wOo6dQMZoA.png 700w&quot; style=&quot;background-color: white; box-sizing: inherit; height: 199.203px; left: 0px; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;2014&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p class=&quot;wt wu uk ot b ww ye wy wz xa yf xc xd xe yg xg xh xi yh xk xl xm yi xo xp xq re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;18f3&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Here we are ready with the neural network and we can use it to predict the house price.&lt;/p&gt;&lt;h1 class=&quot;wb wc uk gs iu agm we wy no agn wh xc ns ago wk agp nw agq wn agr oa ags wq agt oe ws he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b259&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: sohne, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 30px; font-weight: 500; line-height: 36px; margin: 1.95em 0px -0.28em;&quot;&gt;Points to remember for future&lt;/h1&gt;&lt;ol class=&quot;&quot; style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wt wu uk ot b ww wx wy wz xa xb xc xd xe xf xg xh xi xj xk xl xm xn xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2d9c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 0.86em; padding-left: 0px;&quot;&gt;Here you can select the number of the layer and then you can see the variance in prediction.&lt;/li&gt;&lt;li class=&quot;wt wu uk ot b ww zd wy wz xa ze xc xd xe zf xg xh xi zg xk xl xm zh xo xp xq za zb zc he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;70d6&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;You can also select the activation function which will result in the variance in the accuracy.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em;&quot;&gt;Thanks for browsing my pattern, and I hope it benefits you in theory and in practice!!!!&lt;/span&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/3463591500852056293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/neural-network-theory-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/3463591500852056293'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/3463591500852056293'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/neural-network-theory-and.html' title='Neural Network theory and implementation for Regression'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5063749206686217911.post-8883393985780817396</id><published>2020-10-31T22:03:00.002-07:00</published><updated>2020-11-01T00:52:11.883-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="become data scientist at home"/><category scheme="http://www.blogger.com/atom/ns#" term="become data scientist for free"/><category scheme="http://www.blogger.com/atom/ns#" term="become data scientist from scratch"/><category scheme="http://www.blogger.com/atom/ns#" term="become data scientist online"/><category scheme="http://www.blogger.com/atom/ns#" term="become data scientist without degree"/><category scheme="http://www.blogger.com/atom/ns#" term="become data scientist without masters"/><title type='text'>How can I prepare for big companies as data scientist</title><content type='html'>&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;img alt=&quot;Image for post&quot; class=&quot;na aho y z ab ew ap c&quot; height=&quot;361&quot; sizes=&quot;692px&quot; src=&quot;https://miro.medium.com/max/1384/1*tD9FfNXgTElGILXKoFcSCw.png&quot; srcset=&quot;https://miro.medium.com/max/552/1*tD9FfNXgTElGILXKoFcSCw.png 276w, https://miro.medium.com/max/1104/1*tD9FfNXgTElGILXKoFcSCw.png 552w, https://miro.medium.com/max/1280/1*tD9FfNXgTElGILXKoFcSCw.png 640w, https://miro.medium.com/max/1384/1*tD9FfNXgTElGILXKoFcSCw.png 692w&quot; style=&quot;box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: medium; height: 354.734px; left: 0px; letter-spacing: normal; opacity: 1; position: absolute; top: 0px; transition: opacity 400ms ease 0ms; vertical-align: middle; width: 680px;&quot; width=&quot;692&quot; /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;wi wj uw ot b wl wm wn wo wp wq wr ws wt wu wv ww wx wy wz ax xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e88e&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 24px 0px -0.46em; word-break: break-word;&quot;&gt;Here are some top companies in India that hire data scientists and pay cost effective salaries:&lt;/p&gt;&lt;blockquote class=&quot;yx yy yz&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wi wj za ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e0e3&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Analytics Giants&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wi wj uw ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;ee9a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;IBM&lt;/span&gt;- offers 14 lacs per annum&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;c3b3&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Deloitte&lt;/span&gt;- offers 13 lacs per annum&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6e71&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;ZS Associates&lt;/span&gt;- 10 lacs per annum&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a08d&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Accenture&lt;/span&gt;- 11 lacs per annum&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class=&quot;yx yy yz&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wi wj za ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5c5d&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;IT Giants&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;ul style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wi wj uw ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;30d2&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Amazon&lt;/span&gt;- 15 lacs per annum&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;5484&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Flipkart&lt;/span&gt;- 16 lacs per annum&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d7bc&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Google&lt;/span&gt;- 20 lacs per annum&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;fd0c&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Paytm&lt;/span&gt;- 12 lacs per annum&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa zh zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;b895&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: disc; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Myntra&lt;/span&gt;- 13 lacs per annum&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;wi wj uw ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;4943&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;First of all, these companies are way too suspicious when it comes to hiring data sc&lt;span id=&quot;rmm&quot; style=&quot;box-sizing: inherit;&quot;&gt;i&lt;/span&gt;entists for the best teams that they have. You already know the thing that only a few can make it to select in their teams. Especially for beginners, it is very difficult to start their careers with these giants. But as dispirit as it sounds, this is not&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&amp;nbsp;&lt;/span&gt;something that is impossible&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&amp;nbsp;&lt;/span&gt;to achieve. Following the right way, you guys too can land your dream job as a data scientist. Here’s how you should go with the preparation:&lt;/p&gt;&lt;blockquote class=&quot;yx yy yz&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wi wj za ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0e9d&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;span class=&quot;uw&quot; style=&quot;box-sizing: inherit; font-style: normal;&quot;&gt;Master dominant skills&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;wi wj uw ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;a1c2&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;Your top priority strategy should be to get perfectly experienced with all the needed and in-demand technologies. A possible candidate is expected to be well-skilled with multiple skills and technologies which covers:&lt;/p&gt;&lt;ol style=&quot;background-color: white; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; list-style: none none; margin: 0px; padding: 0px;&quot;&gt;&lt;li class=&quot;wi wj uw ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa akz zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;0344&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 2em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Probability&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa akz zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;be87&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Statistics&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa akz zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;d8a2&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Statistical models&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa akz zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;53e1&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Programming Languages&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa akz zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;6667&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Machine Learning&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa akz zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;278a&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Understanding of Databases&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;wi wj uw ot b wl zk wm wn wo zl wp wq wr zm ws wt wu zn wv ww wx zo wy wz xa akz zi zj he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;2e86&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; list-style-type: decimal; margin-bottom: -0.46em; margin-left: 30px; margin-top: 1.05em; padding-left: 0px;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;Visualization Tools&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;wi wj uw ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;e008&quot; style=&quot;background-color: white; box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;All these are some of the skills that are principally plowed under job postings for these Giants. Possessing a broad knowledge of them is the most fundamental necessity.&lt;/p&gt;&lt;blockquote class=&quot;yx yy yz&quot; style=&quot;background-color: white; box-shadow: rgb(41, 41, 41) 3px 0px 0px 0px inset; box-sizing: inherit; color: rgba(0, 0, 0, 0.8); font-family: medium-content-sans-serif-font, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 0px 0px 0px -20px; padding-left: 23px;&quot;&gt;&lt;p class=&quot;wi wj za ot b wl ys wm wn wo yt wp wq wr yu ws wt wu yv wv ww wx yw wy wz xa re he&quot; data-selectable-paragraph=&quot;&quot; id=&quot;eb36&quot; style=&quot;box-sizing: inherit; color: #292929; font-family: charter, Georgia, Cambria, &amp;quot;Times New Roman&amp;quot;, Times, serif; font-size: 21px; font-style: italic; letter-spacing: -0.003em; line-height: 32px; margin: 2em 0px -0.46em; word-break: break-word;&quot;&gt;&lt;span class=&quot;ot kb&quot; style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;span class=&quot;uw&quot; style=&quot;box-sizing: inherit; font-style: normal;&quot;&gt;All the best&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='https://i-king-of-ml.blogspot.com/feeds/8883393985780817396/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-can-i-prepare-for-big-companies-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8883393985780817396'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/5063749206686217911/posts/default/8883393985780817396'/><link rel='alternate' type='text/html' href='https://i-king-of-ml.blogspot.com/2020/10/how-can-i-prepare-for-big-companies-as.html' title='How can I prepare for big companies as data scientist'/><author><name>i-king-of-ml</name><uri>http://www.blogger.com/profile/10592010673113790047</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//2.bp.blogspot.com/-uMdpyI1xJf0/X553uGzhh7I/AAAAAAAAAR8/x1o-3bmof4glIuFjFlmzBGNNbEH8e4oBACK4BGAYYCw/s220/20190514_144108-min.jpg'/></author><thr:total>0</thr:total></entry></feed>