Kartheesh commited on
Commit
8b5245d
1 Parent(s): 836ddd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -10,6 +10,12 @@ def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emi
10
  X_train, X_test, y_train, y_test = train_test_split(x, y, test_size=0.33, random_state=42)
11
  from sklearn.linear_model import LinearRegression
12
  reg = LinearRegression().fit(X_train, y_train)
 
 
 
 
 
 
13
 
14
 
15
 
@@ -24,12 +30,8 @@ def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emi
24
 
25
 
26
 
27
- #Equation
28
- total1="2.29209688*(x1)+(-17.24834114)*(x2)+(-34.46449984)*(x3)+441.88734541*(x4)+(-10.5704468)*(x5)+3032.3276611889232"
29
- eq1=2.29209688*(co2_emission)+(-17.24834114)*(No2_emission)+(-34.46449984)*(so2_emission)+441.88734541*(Global_Warming)+(-10.5704468)*(Methane_emission)+3032.3276611889232
30
-
31
- if(year==1996):
32
- return total1,eq1
33
 
34
 
35
 
 
10
  X_train, X_test, y_train, y_test = train_test_split(x, y, test_size=0.33, random_state=42)
11
  from sklearn.linear_model import LinearRegression
12
  reg = LinearRegression().fit(X_train, y_train)
13
+ #Equation
14
+ total1="2.29209688*(x1)+(-17.24834114)*(x2)+(-34.46449984)*(x3)+441.88734541*(x4)+(-10.5704468)*(x5)+3032.3276611889232"
15
+ eq1=2.29209688*(co2_emission)+(-17.24834114)*(No2_emission)+(-34.46449984)*(so2_emission)+441.88734541*(Global_Warming)+(-10.5704468)*(Methane_emission)+3032.3276611889232
16
+ if(year==1996):
17
+ return total1,eq1
18
+
19
 
20
 
21
 
 
30
 
31
 
32
 
33
+
34
+
 
 
 
 
35
 
36
 
37