wnstnb commited on
Commit
6f9f208
Β·
1 Parent(s): 94516b8

make table readable v1

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -424,7 +424,6 @@ if st.button('πŸ€– Run it'):
424
  historical_proba = res1.loc[cond, 'True'].mean()
425
  # print(cond)
426
 
427
-
428
  elif green_proba <= red_proba:
429
  # If the day is predicted to be green, say so
430
  text_cond = 'πŸŸ₯'
@@ -440,12 +439,12 @@ if st.button('πŸ€– Run it'):
440
  score_fmt = f'{score:.1%}'
441
 
442
  results = pd.DataFrame(index=[
443
- 'ModelScore',
444
- 'HistoricalRate',
445
- f'Num {operator} {"" if do_not_play else score_fmt}'
446
  ], data = [
447
  f'{text_cond} {score:.1%}',
448
- f'{text_cond} {historical_proba:.1%}',
449
  num_obs
450
  ])
451
 
 
424
  historical_proba = res1.loc[cond, 'True'].mean()
425
  # print(cond)
426
 
 
427
  elif green_proba <= red_proba:
428
  # If the day is predicted to be green, say so
429
  text_cond = 'πŸŸ₯'
 
439
  score_fmt = f'{score:.1%}'
440
 
441
  results = pd.DataFrame(index=[
442
+ 'Confidence Score',
443
+ 'Success Rate',
444
+ f'NumObs {operator} {"" if do_not_play else score_fmt}'
445
  ], data = [
446
  f'{text_cond} {score:.1%}',
447
+ f'{historical_proba:.1%}',
448
  num_obs
449
  ])
450