From d15bf113a718e461c86ee147319d5d626dc9225c Mon Sep 17 00:00:00 2001
From: Arun kumar B <138849356+Arun2005-create@users.noreply.github.com>
Date: Thu, 28 Dec 2023 18:03:42 +0530
Subject: [PATCH 1/3] Update README.md
---
README.md | 33 ++++++++++++++++++---------------
1 file changed, 18 insertions(+), 15 deletions(-)
diff --git a/README.md b/README.md
index 18362d83..18130285 100644
--- a/README.md
+++ b/README.md
@@ -6,34 +6,37 @@ To write a python program to implement multivariate linear regression and predic
2. Anaconda – Python 3.7 Installation / Moodle-Code Runner
## Algorithm:
### Step1
-
+Import Pandas library.
### Step2
-
+Import Linear_model from sklearn.
### Step3
-
+Read the csv file using pandas library.
### Step4
-
+Enter the parameters of the linear function.
### Step5
-
+Print the parameters of the linear function.
## Program:
```
-
-
-
-
-
-
+import pandas as ps
+from sklearn import linear_model
+data=ps.read_csv("crse.csv")
+x=data[['Weight','Volume']]
+y=data[['CO2']]
+regr=linear_model.LinearRegression()
+regr.fit(x,y)
+print('Coefficients:',regr.coef_)
+print('Intercept:',regr.intercept_)
+predict=regr.predict([[3300,1300]])
+print('Predicted CO2 for for the corresponding weight and volume',predict)
```
## Output:
+
-### Insert your output
-
-
## Result
-Thus the multivariate linear regression is implemented and predicted the output using python program.
\ No newline at end of file
+Thus the multivariate linear regression is implemented and predicted the output using python program.
From 6e9cda80dbcef2ce533a900c23a67151e41678ad Mon Sep 17 00:00:00 2001
From: Arun kumar B <138849356+Arun2005-create@users.noreply.github.com>
Date: Fri, 29 Dec 2023 08:09:02 +0530
Subject: [PATCH 2/3] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 18130285..31745b2d 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ predict=regr.predict([[3300,1300]])
print('Predicted CO2 for for the corresponding weight and volume',predict)
```
## Output:
-
+
## Result
From eb6bf3f6a144db9cb7770bcb2662f6cec2938016 Mon Sep 17 00:00:00 2001
From: GANESH23012861 <147139861+GANESH23012861@users.noreply.github.com>
Date: Sun, 31 Dec 2023 14:38:11 +0530
Subject: [PATCH 3/3] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 31745b2d..b6dcc865 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ Print the parameters of the linear function.
```
import pandas as ps
from sklearn import linear_model
-data=ps.read_csv("crse.csv")
+data=ps.read_csv("carsmulti.csv")
x=data[['Weight','Volume']]
y=data[['CO2']]
regr=linear_model.LinearRegression()