Spaces:
Sleeping
Sleeping
naming things is hard
Browse files
app.py
CHANGED
@@ -352,14 +352,14 @@ with st.form("choose_model"):
|
|
352 |
# nn.metric(f'N{operator}{"" if do_not_play else score_fmt}',value=num_obs)
|
353 |
|
354 |
top_of_fold = pd.DataFrame(
|
355 |
-
index=[''],
|
356 |
data = {
|
357 |
'Confidence':[f'{text_cond} {score:.1%}'],
|
358 |
'Success':[f'{historical_proba:.1%}'],
|
359 |
f'N{operator}{score:.1%}':[f'{num_obs} / {len(data)}']
|
360 |
})
|
361 |
|
362 |
-
|
363 |
'PrevClose',
|
364 |
'CurrClose'
|
365 |
], data = [
|
@@ -367,7 +367,7 @@ with st.form("choose_model"):
|
|
367 |
f"{curr_close:.2f}"
|
368 |
])
|
369 |
|
370 |
-
|
371 |
|
372 |
# st.subheader('New Prediction')
|
373 |
|
@@ -501,12 +501,12 @@ with st.form("choose_model"):
|
|
501 |
f"{len(data.query('High > VIX_EM_15_High | Low < VIX_EM_15_Low')) / len(data):.1%}"
|
502 |
]
|
503 |
|
504 |
-
st.dataframe(top_of_fold
|
505 |
|
506 |
tab1, tab2, tab3, tab4 = st.tabs(["π€ Stats", "β¨ New Data", "π Historical", "π Performance"])
|
507 |
|
508 |
with tab1:
|
509 |
-
st.dataframe(
|
510 |
st.write(df_probas)
|
511 |
st.text(f'VIX EM ({curr_em:.2f} / {fwd_em:.2f})')
|
512 |
st.write(df_em)
|
|
|
352 |
# nn.metric(f'N{operator}{"" if do_not_play else score_fmt}',value=num_obs)
|
353 |
|
354 |
top_of_fold = pd.DataFrame(
|
355 |
+
index=['Results'],
|
356 |
data = {
|
357 |
'Confidence':[f'{text_cond} {score:.1%}'],
|
358 |
'Success':[f'{historical_proba:.1%}'],
|
359 |
f'N{operator}{score:.1%}':[f'{num_obs} / {len(data)}']
|
360 |
})
|
361 |
|
362 |
+
prices = pd.DataFrame(index=[
|
363 |
'PrevClose',
|
364 |
'CurrClose'
|
365 |
], data = [
|
|
|
367 |
f"{curr_close:.2f}"
|
368 |
])
|
369 |
|
370 |
+
prices.columns = ['']
|
371 |
|
372 |
# st.subheader('New Prediction')
|
373 |
|
|
|
501 |
f"{len(data.query('High > VIX_EM_15_High | Low < VIX_EM_15_Low')) / len(data):.1%}"
|
502 |
]
|
503 |
|
504 |
+
st.dataframe(top_of_fold, use_container_width=True)
|
505 |
|
506 |
tab1, tab2, tab3, tab4 = st.tabs(["π€ Stats", "β¨ New Data", "π Historical", "π Performance"])
|
507 |
|
508 |
with tab1:
|
509 |
+
st.dataframe(prices.T.set_index('PrevClose', drop=True))
|
510 |
st.write(df_probas)
|
511 |
st.text(f'VIX EM ({curr_em:.2f} / {fwd_em:.2f})')
|
512 |
st.write(df_em)
|