Skip to content

Commit

Permalink
Merge pull request #5 from nickpadd/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
nickpadd authored Nov 16, 2023
2 parents afe5fd3 + e6adb66 commit 8b712a1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from europeanfootballleaguepredictor.models.base_model import BaseModel
from europeanfootballleaguepredictor.models.bettor import Bettor
from europeanfootballleaguepredictor.models.supervisor import Supervisor
import numpy as np
from scipy.stats import poisson
import pandas as pd
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/test_predictor_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def test_deduct_goalrate(self, config_settings):
logger.debug(goal_rate)
assert not any(np.any(np.isnan(value)) for value in goal_rate.values())

def test_predict_matches(self, config_settings, create_dummy_dataframe):
def test_produce_probabilities(self, config_settings, create_dummy_dataframe):

short, long, for_pred_short, for_pred_long = [create_dummy_dataframe for i in range(4)]

Expand All @@ -186,7 +186,7 @@ def test_predict_matches(self, config_settings, create_dummy_dataframe):
config = config_settings
network = ProbabilityEstimatorNetwork(voting_dict=config.voting_dict, matchdays_to_drop=config.matchdays_to_drop)
network.build_network(regressor = LinearRegression)
prediction_frame = network.predict_matches(long_term_data=long, short_term_data=short, for_prediction_long=for_pred_long, for_prediction_short=for_pred_short)
prediction_frame = network.produce_probabilities(long_term_data=long, short_term_data=short, for_prediction_long=for_pred_long, for_prediction_short=for_pred_short)

logger.debug(prediction_frame)
for index, row in prediction_frame.iterrows():
Expand Down

0 comments on commit 8b712a1

Please sign in to comment.