Spaces:
Sleeping
Sleeping
scorpion237
commited on
Commit
•
6939570
1
Parent(s):
40a3917
Update app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,7 @@ def main():
|
|
248 |
if st.sidebar.checkbox("XGBoost"):
|
249 |
st.subheader(":orange[XGBoost] :sunglasses:")
|
250 |
xg = xgb.XGBClassifier()
|
251 |
-
xg
|
252 |
pred = xg.predict(X)
|
253 |
pred_proba = xg.predict_proba(X)
|
254 |
st.subheader(':green[Prediction]')
|
|
|
248 |
if st.sidebar.checkbox("XGBoost"):
|
249 |
st.subheader(":orange[XGBoost] :sunglasses:")
|
250 |
xg = xgb.XGBClassifier()
|
251 |
+
xg.load_model("xg.json")
|
252 |
pred = xg.predict(X)
|
253 |
pred_proba = xg.predict_proba(X)
|
254 |
st.subheader(':green[Prediction]')
|