BraydenMoore commited on
Commit
f5ddd11
·
1 Parent(s): 80100ef

Update Source/Predict/predict.py

Browse files
Files changed (1) hide show
  1. Source/Predict/predict.py +1 -1
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(ml_predicted_proba)
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]}