<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Snigdha Sen on Medium]]></title>
        <description><![CDATA[Stories by Snigdha Sen on Medium]]></description>
        <link>https://medium.com/@snigdha.gat?source=rss-aa1b9adcb2f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jOHBdbhw782HU369jXp1Eg.jpeg</url>
            <title>Stories by Snigdha Sen on Medium</title>
            <link>https://medium.com/@snigdha.gat?source=rss-aa1b9adcb2f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:30:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@snigdha.gat/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A quick guide to Multi-Node Hadoop Cluster setup for Beginners]]></title>
            <link>https://medium.com/swlh/a-quick-guide-to-multi-node-hadoop-cluster-setup-for-beginners-3c205c0c34d4?source=rss-aa1b9adcb2f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c205c0c34d4</guid>
            <category><![CDATA[multinode-cluster]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Snigdha Sen]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 16:58:20 GMT</pubDate>
            <atom:updated>2020-10-08T17:14:49.116Z</atom:updated>
            <content:encoded><![CDATA[<p>Data, data and Data. Across every sectors people are dealing with huge and colossal amount of data which is also termed as Big data. Hadoop is a very well known and widespread distributed framework for big data processing . But when it comes to Hadoop installation, most of us feel that it is quite cumbersome job. This article will provide you some easy and quick steps for a multi node Hadoop cluster setup.</p><p><strong>Multi-Node Cluster in Hadoop 3.x (3.1.3)</strong></p><p>A Multi Node Cluster in Hadoop contains two or more data nodes in a distributed Hadoop environment. This is used in organisations to store and analyse their massive amount of data. So knowing how to setup a multi-node Hadoop cluster is an important task.</p><p><strong>Prerequisites</strong></p><p>We will need the following software and hardware as prerequisite to perform the activities.</p><p>Ubuntu 18.04.3 <a href="https://ubuntu.com/download/desktop">LTS</a> (Long Term Support)</p><ul><li><a href="http://apache.cs.utah.edu/hadoop/common/current/hadoop-3.1.3.tar.gz">Hadoop-3.1.3</a></li><li>JAVA 8</li><li>SSH</li><li>At least 2 laptop/desktop connected by LAN/Wi-Fi</li></ul><p><strong>Installations Steps</strong></p><p><strong>Step 01: Installation of Ubuntu/OS in the machines</strong></p><p>This step is very self-explanatory, as a first step we need to install Ubuntu or any other flavor of Linux you have chosen in both the nodes (Laptop/Desktop — will be referred as nodes from hereon). You can also install a lighter version of Ubuntu — <a href="https://lubuntu.net/downloads/">Lubuntu</a> (Light weight Ubuntu)( if you are using old hardware where you are having difficulty installing Ubuntu.</p><p>In my case I was using an old laptop of mine as the slave node and I had to install <a href="https://lubuntu.net/downloads/">Lubuntu</a> and it worked without any issues.</p><p>Please create an admin user in both the nodes preferably with the same username</p><p><strong>Step 02: Configuring host names</strong></p><p>Once OS is installed as a next step, we should set the hostname for both the nodes. In my case I named the nodes as —</p><ul><li>masternode</li><li>slave</li></ul><pre>sudo vi /etc/hostname </pre><p>Reboot of the node is required after the hostname is updated.</p><p>* This step is optional if you have already put the hostnames during OS installation</p><p><strong>Step 03: Configuring IP address in the hosts file of the nodes</strong></p><p>Next, we need to add the IPs of masternode and slave node in the /etc/hosts file in both the nodes.</p><p>Command:</p><pre>sudo vi /etc/hosts</pre><p>In my case I added:-</p><pre>192.168.1.4 masternode </pre><pre>192.168.1.23 slave </pre><p>Comment out all other entries you have in the hosts file in both the nodes.</p><p>Command to see the IP of the node:</p><pre>ip addr show</pre><p><strong>Step 04: Restart the sshd service in both the nodes</strong></p><p>Command:</p><pre>service sshd restart</pre><p><strong>Step 05: Create the SSH Key in the master node and publish it in the slave node.</strong></p><p>For this activity follow the below steps: —</p><ul><li>Command to generate SSH key in masternode: ssh-keygen</li><li>It will ask for folder location where it will copy the keys, I entered /home/username/.ssh/id_rsa</li><li>It will ask for pass phrase, keep it empty for simplicity.</li><li>Next copy the newly generated public key to auth file in your users home/.ssh directory. Command: cat $HOME/.ssh/id_rsa.pub &gt;&gt; $HOME/.ssh/authorized_keys</li><li>Next execute — ssh localhost to check if the key is working.</li><li>Next, we need to publish the key to the slave node. Command: ssh-copy-id -i $HOME/.ssh/id_rsa.pub &lt;username&gt;@slave</li><li>First time it will prompt you to enter the password and publish the key.</li><li>Execute ssh &lt;username&gt;@slave again to check if you are able to loging without password. <strong>This is very important. Without public key working,the slave node cannot be added to the cluster later.</strong></li></ul><p><strong>Step 06: Download and install Java</strong></p><p>Download and install Open JDK 8 and set the JAVA_HOME path in your .bashrc file of the user under which you are installing hadoop.</p><p><strong>Step 07: Download the Hadoop 3.1.3 package in all nodes.</strong></p><p>Login to each node and download and untar the Hadoop package.</p><p>wget <a href="http://apache.cs.utah.edu/hadoop/common/current/hadoop-3.1.3.tar.gz">http://apache.cs.utah.edu/hadoop/common/current/hadoop-3.1.3.tar.gz</a> tar -xzf hadoop-3.1.3.tar.gz</p><p><strong>Step 08: Add the Hadoop and Java paths in the bash file (.bashrc) on all nodes.</strong></p><p>Command: sudo vi .bashrc</p><p>Environment Variables to Set in .bashrc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*p875wCuT0mkCUuq11By5RQ.png" /></figure><p><strong>Step 09: Set NameNode Location</strong></p><p>Update your ~/hadoop/etc/hadoop/core-site.xml file to set the NameNode location to node-master on port 9000:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*zbhfe7K9i2chf-zyQi-Znw.png" /></figure><p><strong>Step 10: Set path for HDFS</strong></p><p>Edit ~/hadoop/etc/hadoop/hdfs-site.conf to add the following for the masternode:</p><pre>&lt;configuration&gt;</pre><pre> &lt;property&gt; </pre><pre>&lt;name&gt;dfs.namenode.name.dir&lt;/name&gt; &lt;value&gt;/home/hadoop/data/nameNode&lt;/value&gt; </pre><pre>&lt;/property&gt; </pre><pre>&lt;property&gt; </pre><pre>&lt;name&gt;dfs.datanode.data.dir&lt;/name&gt; &lt;value&gt;/usr/local/hadoop/data/dataNode&lt;/value&gt; </pre><pre>&lt;/property&gt; </pre><pre>&lt;property&gt;</pre><pre>&lt;name&gt;dfs.replication&lt;/name&gt; </pre><pre>&lt;value&gt;1&lt;/value&gt; </pre><pre>&lt;/property&gt;</pre><pre> &lt;/configuration&gt;</pre><p>For the data node please put the following config:</p><pre>&lt;configuration&gt; </pre><pre>&lt;property&gt; </pre><pre>&lt;name&gt;dfs.replication&lt;/name&gt; </pre><pre>&lt;value&gt;1&lt;/value&gt; </pre><pre>&lt;/property&gt; </pre><pre>&lt;property&gt; </pre><pre>&lt;name&gt;dfs.permissions&lt;/name&gt; </pre><pre>&lt;value&gt;false&lt;/value&gt; </pre><pre>&lt;/property&gt; </pre><pre>&lt;property&gt; </pre><pre>&lt;name&gt;dfs.datanode.data.dir&lt;/name&gt; &lt;value&gt;/usr/local/hadoop/data/datanode&lt;/value&gt; </pre><pre>&lt;/property&gt; </pre><pre>&lt;/configuration&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*-wjBnEqv49gtVh-Xq9bMkA.png" /></figure><p><strong>Please note the difference between the configuration properties of masternode and slave.</strong></p><p><strong>Step 11: Set YARN as Job Scheduler</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fipczB4zOTFKjnZqnrD98A.png" /></figure><p><strong>Step 12: Configure YARN</strong></p><p>Edit ~/hadoop/etc/hadoop/yarn-site.xml, which contains the configuration options for YARN. In the value field for the yarn.resourcemanager.hostname, replace 192.168.1.4 with the IP address of node-master that you have:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*IpvbhdwZYDRXrFOwecJ8XQ.png" /></figure><pre>&lt;property&gt; </pre><pre>&lt;name&gt;yarn.nodemanager.aux-services&lt;/name&gt; &lt;value&gt;mapreduce_shuffle&lt;/value&gt; </pre><pre>&lt;/property&gt;</pre><pre>&lt;/configuration&gt;</pre><p><strong>Step 13: Configure Workers</strong></p><p>The file worker is used by startup scripts to start required daemons on all nodes. Edit ~/hadoop/etc/hadoop/workers of the masternode to include hostnames of both of the nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*JxmwxxEpYn4VJ-mVWzBlQg.png" /></figure><p><strong>Step 14: Update the JAVA_HOME in hadoop-env.sh</strong></p><p>Edit ~/hadoop/etc/hadoop/hadoop-env.sh and update the value for the JAVA_HOME of your installation for both the nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*5VKTNJFUHJzO3w-Sipt5LQ.png" /></figure><p><strong>Step 15: Format HDFS namenode</strong></p><p>Execute the following command in your masternode.</p><p>Command: hdfs namenode -format</p><p><strong>Step 16: Start and Stop HDFS</strong></p><p>Ok. So now you are almost there. Only thing left is starting the daemons. To start all the daemons and bring up your hadoop cluster use the below command:</p><p>Command: start-all.sh</p><p>Once the command prompt is back, to check the daemons running use the following command: Command: jps</p><p>This is what you will see in the masternode:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*e8bQtxBRx7jf9uipx9ze_A.png" /></figure><p>This is what you will see in the slave node:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*V1nSbFydzOaPdLGXJJVrfQ.png" /></figure><p><strong>If you are not seeing the above daemons running, then something has gone wrong in your configuration. So, you need to check the previous steps again.</strong></p><p>So, your cluster is up and running. To check the namenode information from the browser use the following URL after modifying the IP with that of your masternode: <a href="http://192.168.1.4:9870/dfshealth.html#tab-overview"><em>http://192.168.1.4:9870/dfshealth.html#tab-overview</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*3tAtzYwU8kccOWMoK517AA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*2ncIwkYuELd-6V7y_j_h5g.png" /></figure><p>To check the Nodes of the cluster you can use the following URL after updating the IP for your masternode: <a href="http://192.168.1.4:8088/cluster/nodes"><em>http://192.168.1.4:8088/cluster/nodes</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vTHrZ54fIn6p99e-KyYXlg.png" /></figure><p><strong>Step 17: Put and Get Data to HDFS</strong></p><p>To start with you have to create the user directory in your HDFS cluster. This user directory should be in the same username under which you have installed and running the cluster. Use the following command:</p><p>Command: hdfs dfs -mkdir /user/username</p><p>Once user directory is created you can use any of your hdfs dfs commands and start using your HDFS cluster.</p><p>So you are able to setup Hadoop cluster finally without much trouble I hope.</p><h3>Issues I faced</h3><p>Well as with any projects small or big, it wasn’t a smooth sailing as the documentation above looks like. I initially started with an aim to create a multimode cluster using windows machines but somehow the ssh server and client did not workout with the username convention that windows follows. So I used the next best option available to me — creating a cluster using Ubuntu on my old laptops. During setting up the configuration I faced couple of major hurdles:</p><ul><li>With the jdk versions: I had installed Open JDK 11 and it looks like there is some incompatibility with the Open JDK 11 with that of Hadoop 3.1.3. The nodemanager daemon was not coming up due to this. After googling around I settled for Open JDK 8.</li><li>Username used for Hadoop installation in master and slave node: Initially I created two different username (like master &amp; slave) in masternode and slave due to which the ssh command triggered by the Hadoop start-all scripts was failing as it was trying to use master@slave while I did not have ‘master’ username created on the slave node. This was resolved once I switched to the same username in both nodes.</li></ul><p>This brings us to the end of this blog. Do let me know in the comment section whether this helped you in setting up your own multinode hadoop cluster.</p><p>Thanks for reading.:)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c205c0c34d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/a-quick-guide-to-multi-node-hadoop-cluster-setup-for-beginners-3c205c0c34d4">A quick guide to Multi-Node Hadoop Cluster setup for Beginners</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Linear and Polynomial Regression in Few Steps]]></title>
            <link>https://medium.com/swlh/understanding-linear-and-polynomial-regression-in-few-steps-facc044740ab?source=rss-aa1b9adcb2f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/facc044740ab</guid>
            <category><![CDATA[regression]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[linear-regression]]></category>
            <dc:creator><![CDATA[Snigdha Sen]]></dc:creator>
            <pubDate>Tue, 06 Oct 2020 17:40:09 GMT</pubDate>
            <atom:updated>2020-10-08T14:21:25.110Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence (AI) and Machine learning (ML) are buzzwords in recent times. The popularity and robustness of ML lies in its numerous algorithms designated for several data analysis tasks. Through this blog I try to give an understanding of Linear and polynomial regression, two popular ML algorithms in just few steps.</p><p><strong>Ways to execute ML program</strong></p><ul><li>Download and install Anaconda Navigator and use Jupyter Notebook</li><li>Use notepad, text pad or any text editor to write your program and save with .py and run with python &lt;filename&gt;.py from command prompt</li><li>Use <a href="https://colab.research.google.com/">Google Colaboratory,</a> Google’s cloud servers which offers GPU(Graphics processing unit) and TPU(Tensor processing unit) and jupyter notebook like interface to run ML programs</li></ul><p>Broadly data science major task are of two categories. Figure 1 is evident enough to understand difference between two.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/533/1*GgIvavvbtNDRaYhnxaarlQ.png" /><figcaption>Figure 1: Difference between regression and classification problem</figcaption></figure><p><strong>Linear Regression:</strong>.</p><p>The term linear implies straight, without much complexity isn’t it? Regression problem is the simplest and easiest algorithm in any machine learning task. Whenever you require to predict something for future just go for with regression algorithm.</p><p><strong>Need of linear regression:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*8z7b1jNSE1LUsXsv3BGHXw.png" /><figcaption>Figure 2</figcaption></figure><p>From Figure 2, it is very obvious that based on area in square feet, price is being determined. Here we want to predict for 2400 sq ft area, what can be the estimated price? To handle this kind of problem we choose regression model. It tries to capture the relationship between independent and dependent variable.</p><p>• <strong>The variable we are predicting is termed as Y (Target/Dependent variable) — Price in this case</strong></p><p>• <strong>The variable we are using as input is termed as X (Input/Independent variable)- Area in this case</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*t6F98E9Gt5GjWQJaFfacWA.png" /><figcaption>Figure 3: Linear Regression</figcaption></figure><p>Figure 3 helps us to understand the equation of straight line and the meaning of independent and dependent variable. Error is calculated as a difference between Actual value and Predicted value. The objective of linear regression is to find a straight line which best fits the data points scattered in X-Y axis.</p><p><strong>Solved Example</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*g643VZY4V4ATG_PGKOrTmA.png" /><figcaption>Sample problem</figcaption></figure><p>Solution: The formula of a and b goes as below. From there we need to find a and b value and finally the straight line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*QEC6_SNH2WI-zEDZuO7K6w.png" /></figure><p>To solve this problem easily, we will create a table and calculate the following values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*2JjekQh6ycaJPuYwNCPZiA.png" /><figcaption>Solution to Linear regression problem</figcaption></figure><p>Putting the values in above equation we will get value of a .9 and b is 2.2</p><p>a) Now that we have the least square regression line y = 0.9 x + 2.2</p><p>b) Substitute x by 10 to find the value of the corresponding y.<br> y = 0.9 * 10 + 2.2 = 11.2</p><p><strong>Polynomial Regression</strong></p><p>When data samples can not be fit through a straight line with linear regression, when the datasets is much more complex, when relationship between data points are complex, we need to look towards Polynomial regression</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*iHJwhICdp1ekZxgy7f8gGA.png" /><figcaption>x is input whereas Y is output</figcaption></figure><p>To represent or capture complex relationship between data samples , we have to take power of the input features.</p><p><strong>Sample Program</strong></p><p>Here, I have given two sample code one on linear regression and other one on polynomial regression. The datasets used here is Covid datasets of Karnataka state collected from <a href="http://kaggle.com/">Kaggle</a>, where no of day is X(independent variable) and Confirmed cases is Y(dependent variable). The objective of the program is to predict number of confirmed cases after certain number of days.</p><p>#<strong>Linear Regression model on Covid data set</strong></p><pre>#importing python library</pre><pre>import pandas as pd</pre><pre>import numpy as np</pre><pre>import matplotlib.pyplot as plt</pre><pre>from sklearn.model_selection import train_test_split</pre><pre>from sklearn.linear_model import LinearRegression</pre><pre>from sklearn import metrics</pre><pre>from sklearn.metrics import mean_squared_error,r2_score</pre><pre>#Read dataset</pre><pre>dataset = pd.read_csv(“/content/drive/My Drive/Workshop_ML_GAT/Karnataka.csv”)</pre><pre># describing dataset</pre><pre>dataset.describe()</pre><pre>X = dataset[‘Day’].values.reshape(-1,1) #reshape() is used to convert from 1-D to 2-D</pre><pre>y = dataset[‘Confirmed’].values.reshape(-1,1)</pre><pre>#Calling linear regression function</pre><pre>regressor = LinearRegression()</pre><pre>#Training model using fit()</pre><pre>regressor.fit(X,y)</pre><pre>#Predicting model</pre><pre>y_pred=regressor.predict(X)</pre><pre>#Visualizing the output</pre><pre>plt.scatter(X, y, color = ‘magenta’)</pre><pre>plt.plot(X, y_pred, color = ‘green’)</pre><pre>plt.title(‘Daywise confirmed case in Karnataka’)</pre><pre>plt.xlabel(‘NoofDay’)</pre><pre>plt.ylabel(‘Confirmed case’)</pre><pre>plt.show()</pre><pre>#Calculating error metric</pre><pre>rmse = np.sqrt(mean_squared_error(y,y_pred))</pre><pre>r2 = r2_score(y,y_pred)</pre><pre>print(‘RMSE is ‘+ str(rmse))</pre><pre>print(‘r2 is ‘+str(r2))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*4Qka5gjF7qe-CiCyKc2j9A.png" /><figcaption>Linear Regression Model</figcaption></figure><p>From the above plot it is clearly visible that linear regression is not suitable for this datasets. So requirement of polynomial regression arises.</p><p>#<strong>polynomial Regression</strong></p><pre>import pandas as pd</pre><pre>import numpy as np</pre><pre>import matplotlib.pyplot as plt</pre><pre>from sklearn.model_selection import train_test_split</pre><pre>from sklearn.preprocessing import PolynomialFeatures</pre><pre>from sklearn import metrics</pre><pre>from sklearn.metrics import mean_squared_error,r2_score</pre><pre>dataset = pd.read_csv(“/content/drive/My Drive/Workshop_ML_GAT/Karnataka.csv”)</pre><pre>dataset.describe() # describing dataset</pre><pre>X = dataset[‘Day’].values.reshape(-1,1)</pre><pre>y = dataset[‘Confirmed’].values.reshape(-1,1)</pre><pre>#Converting input feature into their higher order</pre><pre>poly=PolynomialFeatures(degree = 3)</pre><pre>X_poly = poly.fit_transform(X)</pre><pre>regressor = LinearRegression()</pre><pre>regressor.fit(X_poly,y)</pre><pre>y_poly_pred=regressor.predict(X_poly)</pre><pre>#Visualizing output</pre><pre>plt.scatter(X, y, color = ‘magenta’)</pre><pre>plt.plot(X, y_poly_pred, color = ‘green’)</pre><pre>plt.title(‘Daywise confirmed case in Karnataka’)</pre><pre>plt.xlabel(‘No of Day’)</pre><pre>plt.ylabel(‘Confirmed Cases’)</pre><pre>plt.show()</pre><pre>rmse = np.sqrt(mean_squared_error(y,y_poly_pred))</pre><pre>r2 = r2_score(y,y_poly_pred)</pre><pre>print(‘RMSE is ‘+ str(rmse))</pre><pre>print(‘r2 is ‘+str(r2))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*28gwAe96jOwk02WR6GeZdQ.png" /><figcaption>Polynomial Regression Model</figcaption></figure><p>If we compare above two output , in case of polynomial regression RMSE has reduced drastically whereas r2 score increases which indicates polynomial regression suits reasonably well for this datasets.</p><p><strong>Regression model performance evaluator metrics: </strong>Most commonly used metrics are</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*7ruXnkLB5aukcd7XD_RmRw.png" /><figcaption>Mean squared error(MSE)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*RKzEMxvtWSlMkvZQmcE8UA.png" /><figcaption>Mean Absolute Error(MAE)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*mPuEQN1BX0Dc9RSZFT1URA.png" /><figcaption>Root mean squared error(RMSE)</figcaption></figure><p>In addition to that, r2 score is also considered as a important metric for which best score is 1.0. But negative value also possible.</p><p><strong>Application of Regression in Real Life</strong></p><p>• What will be stock price for <em>next year</em>?</p><p>• What will be temperature in Bangalore Tomorrow?</p><p>• What will my salary after 20 years?</p><p>• How many confirmed Covid cases in Bangalore on 25th October?</p><blockquote><strong>Conclusion: </strong>Although linear regression is simpler and easy to understand, in practical , datasets are not that linear to be predicted with linear regression most of the times. Through regularization techniques over fitting of model can be controlled to some extent. Although Artificial Intelligence, Machine learning (ML) is trending all over world, people should be careful while applying ML considering its application is actually required or not for their work as some data analysis can be done without using ML too.</blockquote><p>Thanks for reading:)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=facc044740ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/understanding-linear-and-polynomial-regression-in-few-steps-facc044740ab">Understanding Linear and Polynomial Regression in Few Steps</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>