Kartheesh commited on
Commit
2359934
1 Parent(s): 8c38810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -5,21 +5,21 @@ def greet(year,co2_emission,No2_emission,so2_emission,Global_Warming,Methane_emi
5
 
6
 
7
 
8
- #data indexing
9
- x=df1.iloc[:,1:].values
10
- y=df1.iloc[:,0].values
11
- np.reshape(y,(-1,1))
12
 
13
  #split the dataset
14
- from sklearn.model_selection import train_test_split
15
- X_train, X_test, y_train, y_test = train_test_split(
16
- x, y, test_size=0.33, random_state=42)
17
 
18
 
19
  #traing the dataset
20
- from sklearn.linear_model import LinearRegression
21
 
22
- reg = LinearRegression().fit(X_train, y_train)
23
 
24
 
25
 
 
5
 
6
 
7
 
8
+ #data indexing
9
+ x=df1.iloc[:,1:].values
10
+ y=df1.iloc[:,0].values
11
+ np.reshape(y,(-1,1))
12
 
13
  #split the dataset
14
+ from sklearn.model_selection import train_test_split
15
+ X_train, X_test, y_train, y_test = train_test_split(
16
+ x, y, test_size=0.33, random_state=42)
17
 
18
 
19
  #traing the dataset
20
+ from sklearn.linear_model import LinearRegression
21
 
22
+ reg = LinearRegression().fit(X_train, y_train)
23
 
24
 
25