adityaprakash17
commited on
Commit
•
38cc412
1
Parent(s):
4aac4eb
Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,8 @@ x_train, x_test, y_train, y_test = train_test_split(df.drop('charges',axis=1), d
|
|
18 |
#dtree = DecisionTreeRegressor()
|
19 |
#model training
|
20 |
#dtree.fit(x_train,y_train)
|
|
|
|
|
21 |
|
22 |
from sklearn.ensemble import RandomForestRegressor
|
23 |
rf = RandomForestRegressor()
|
|
|
18 |
#dtree = DecisionTreeRegressor()
|
19 |
#model training
|
20 |
#dtree.fit(x_train,y_train)
|
21 |
+
x_train=x_train.values
|
22 |
+
y_train=y_train.values
|
23 |
|
24 |
from sklearn.ensemble import RandomForestRegressor
|
25 |
rf = RandomForestRegressor()
|