Spaces:
Running
Running
Commit
·
952abd1
1
Parent(s):
7257aaa
Add performance vs coinflip
Browse files
Source/Data/record.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"winners_correct": "19", "winners_incorrect": "9", "winners_tie": "", "winners_return": "67.9% accuracy, 4.9x return", "over_unders_correct": "21", "over_unders_incorrect": "16", "over_unders_push": "", "over_unders_return": "56.8% accuracy, 3.1x return", "latest_game": "Monday, 10/09"}
|
|
|
1 |
+
{"winners_correct": "19", "winners_incorrect": "9", "winners_tie": "", "winners_return": "67.9% accuracy, 4.9x return", "over_unders_correct": "21", "over_unders_incorrect": "16", "over_unders_push": "", "over_unders_return": "56.8% accuracy, 3.1x return", "latest_game": "Monday, 10/09", "over_unders_binom": "16.2% chance of equal or better performance by flipping a coin.", "winners_binom": "1.8% chance of equal or better performance by flipping a coin."}
|
Source/Predict/__pycache__/predict.cpython-311.pyc
CHANGED
Binary files a/Source/Predict/__pycache__/predict.cpython-311.pyc and b/Source/Predict/__pycache__/predict.cpython-311.pyc differ
|
|
Source/Predict/predict.py
CHANGED
@@ -96,7 +96,6 @@ def get_one_week(home,away,season,week):
|
|
96 |
away_df.columns = [i.replace('.Away','') + '.Away' for i in away_df.columns]
|
97 |
|
98 |
df = home_df.reset_index(drop=True).merge(away_df.reset_index(drop=True), left_index=True, right_index=True)
|
99 |
-
print(df)
|
100 |
return df
|
101 |
except ValueError:
|
102 |
return pd.DataFrame()
|
|
|
96 |
away_df.columns = [i.replace('.Away','') + '.Away' for i in away_df.columns]
|
97 |
|
98 |
df = home_df.reset_index(drop=True).merge(away_df.reset_index(drop=True), left_index=True, right_index=True)
|
|
|
99 |
return df
|
100 |
except ValueError:
|
101 |
return pd.DataFrame()
|
Templates/index.html
CHANGED
@@ -391,15 +391,20 @@
|
|
391 |
<div class="section-container">
|
392 |
<div class="section">
|
393 |
<h3>Moneyline</h3>
|
|
|
394 |
<div class="content">
|
395 |
<img src="/Static/Winner_Predictions_dark.png" alt="Moneyline Accuracy">
|
396 |
</div>
|
|
|
|
|
397 |
</div>
|
398 |
<div class="section">
|
399 |
<h3>Over/Under</h3>
|
|
|
400 |
<div class="content">
|
401 |
<img src="/Static/Over_Under_Predictions_dark.png" alt="Over/Under Model">
|
402 |
</div>
|
|
|
403 |
</div>
|
404 |
</div>
|
405 |
</div>
|
|
|
391 |
<div class="section-container">
|
392 |
<div class="section">
|
393 |
<h3>Moneyline</h3>
|
394 |
+
<div class="info">{{ winners_return }}.</div>
|
395 |
<div class="content">
|
396 |
<img src="/Static/Winner_Predictions_dark.png" alt="Moneyline Accuracy">
|
397 |
</div>
|
398 |
+
<div class="info"><span class="label">{{ winners_binom }}</span><br></div>
|
399 |
+
|
400 |
</div>
|
401 |
<div class="section">
|
402 |
<h3>Over/Under</h3>
|
403 |
+
<div class="info">{{ over_unders_return }}.</div>
|
404 |
<div class="content">
|
405 |
<img src="/Static/Over_Under_Predictions_dark.png" alt="Over/Under Model">
|
406 |
</div>
|
407 |
+
<div class="info"><span class="label">{{ over_unders_binom }}</span><br></div>
|
408 |
</div>
|
409 |
</div>
|
410 |
</div>
|