Update app.py
Browse files
app.py
CHANGED
|
@@ -353,7 +353,7 @@ if st.session_state.news_loaded:
|
|
| 353 |
|
| 354 |
# Model prediction
|
| 355 |
proba = model.predict_proba(x_pca)[0][1]
|
| 356 |
-
prediction = "Increase" if proba >= 0.
|
| 357 |
|
| 358 |
# PCA features table
|
| 359 |
pca_df = pd.DataFrame(x_pca, columns=[f"PC{i+1}" for i in range(x_pca.shape[1])])
|
|
|
|
| 353 |
|
| 354 |
# Model prediction
|
| 355 |
proba = model.predict_proba(x_pca)[0][1]
|
| 356 |
+
prediction = "Increase" if proba >= 0.65 else "Decrease"
|
| 357 |
|
| 358 |
# PCA features table
|
| 359 |
pca_df = pd.DataFrame(x_pca, columns=[f"PC{i+1}" for i in range(x_pca.shape[1])])
|