Spaces:
Running
Running
above the fold
Browse files
app.py
CHANGED
@@ -294,7 +294,7 @@ with st.form("choose_model"):
|
|
294 |
|
295 |
seq_proba = seq_predict_proba(new_pred, xgbr, seq2)
|
296 |
|
297 |
-
st.success(f"All done
|
298 |
|
299 |
green_proba = seq_proba[0]
|
300 |
red_proba = 1 - green_proba
|
@@ -436,8 +436,6 @@ with st.form("choose_model"):
|
|
436 |
|
437 |
csv = convert_df(perf_daily)
|
438 |
|
439 |
-
tab1, tab2, tab3, tab4 = st.tabs(["๐ฎ Prediction", "โจ New Data", "๐ Historical", "๐ Performance"])
|
440 |
-
|
441 |
check = data.tail(1)
|
442 |
|
443 |
data['VIX_EM'] = data['Close'] * (data['Close_VIX']/100) * (np.sqrt( 1 ) / np.sqrt(252))
|
@@ -489,10 +487,12 @@ with st.form("choose_model"):
|
|
489 |
f"{len(data.query('Close <= VIX_EM_15_High & Close >= VIX_EM_15_Low')) / len(data):.1%}",
|
490 |
f"{len(data.query('High > VIX_EM_15_High | Low < VIX_EM_15_Low')) / len(data):.1%}"
|
491 |
]
|
492 |
-
|
|
|
|
|
|
|
|
|
493 |
with tab1:
|
494 |
-
st.subheader(f'{option} on {curr_date}')
|
495 |
-
st.write(results)
|
496 |
st.write(df_probas)
|
497 |
st.text(f'VIX EM ({curr_em:.2f} / {fwd_em:.2f})')
|
498 |
st.write(df_em)
|
|
|
294 |
|
295 |
seq_proba = seq_predict_proba(new_pred, xgbr, seq2)
|
296 |
|
297 |
+
st.success(f"All done!", icon="โ
")
|
298 |
|
299 |
green_proba = seq_proba[0]
|
300 |
red_proba = 1 - green_proba
|
|
|
436 |
|
437 |
csv = convert_df(perf_daily)
|
438 |
|
|
|
|
|
439 |
check = data.tail(1)
|
440 |
|
441 |
data['VIX_EM'] = data['Close'] * (data['Close_VIX']/100) * (np.sqrt( 1 ) / np.sqrt(252))
|
|
|
487 |
f"{len(data.query('Close <= VIX_EM_15_High & Close >= VIX_EM_15_Low')) / len(data):.1%}",
|
488 |
f"{len(data.query('High > VIX_EM_15_High | Low < VIX_EM_15_Low')) / len(data):.1%}"
|
489 |
]
|
490 |
+
st.subheader(f'๐ฎ for {option} on {curr_date}')
|
491 |
+
st.write(results.T)
|
492 |
+
|
493 |
+
tab1, tab2, tab3, tab4 = st.tabs(["๐ค Stats", "โจ New Data", "๐ Historical", "๐ Performance"])
|
494 |
+
|
495 |
with tab1:
|
|
|
|
|
496 |
st.write(df_probas)
|
497 |
st.text(f'VIX EM ({curr_em:.2f} / {fwd_em:.2f})')
|
498 |
st.write(df_em)
|