Spaces:
Running
Running
Commit
·
f5ddd11
1
Parent(s):
80100ef
Update Source/Predict/predict.py
Browse files
Source/Predict/predict.py
CHANGED
@@ -158,7 +158,7 @@ def predict(home,away,season,week,total):
|
|
158 |
xgb_ml.load_model(file_path)
|
159 |
try:
|
160 |
ml_predicted_proba = xgb_ml.predict(matrix)[0][1]
|
161 |
-
print(
|
162 |
winner_proba = max([ml_predicted_proba, 1-ml_predicted_proba]).item()
|
163 |
moneyline = {'Winner': [home if ml_predicted_proba>0.6 else away if ml_predicted_proba<0.4 else 'Toss-Up'],
|
164 |
'Probabilities':[winner_proba]}
|
|
|
158 |
xgb_ml.load_model(file_path)
|
159 |
try:
|
160 |
ml_predicted_proba = xgb_ml.predict(matrix)[0][1]
|
161 |
+
print(xgb_ml.predict(matrix))
|
162 |
winner_proba = max([ml_predicted_proba, 1-ml_predicted_proba]).item()
|
163 |
moneyline = {'Winner': [home if ml_predicted_proba>0.6 else away if ml_predicted_proba<0.4 else 'Toss-Up'],
|
164 |
'Probabilities':[winner_proba]}
|