footix package
Subpackages
- footix.data_io package
- Submodules
- footix.data_io.base_scrapper module
- footix.data_io.data_reader module
- footix.data_io.footballdata module
ScrapFootballDataScrapFootballData.base_urlScrapFootballData.scraper_nameScrapFootballData.competitionScrapFootballData.seasonScrapFootballData.pathScrapFootballData.force_reloadScrapFootballData.infered_urlScrapFootballData.dfScrapFootballData.download()ScrapFootballData.load()ScrapFootballData.sanitize_columns()ScrapFootballData.get_fixtures()ScrapFootballData.base_urlScrapFootballData.scraper_nameScrapFootballData.download()ScrapFootballData.load()ScrapFootballData.sanitize_columns()ScrapFootballData.get_fixtures()
- footix.data_io.prediction_export module
- footix.data_io.understat module
ShotDataNotFoundFixtureDataNotFoundScrapUnderstatScrapUnderstat.base_urlScrapUnderstat.scraper_nameScrapUnderstat.seasonScrapUnderstat.force_reloadScrapUnderstat.slugScrapUnderstat.sanitize_columns()ScrapUnderstat.get_fixtures()ScrapUnderstat.base_urlScrapUnderstat.scraper_nameScrapUnderstat.sanitize_columns()ScrapUnderstat.get_fixtures()ScrapUnderstat.get_shots()
- footix.data_io.utils_scrapper module
- Module contents
ScrapFootballDataScrapFootballData.base_urlScrapFootballData.scraper_nameScrapFootballData.competitionScrapFootballData.seasonScrapFootballData.pathScrapFootballData.force_reloadScrapFootballData.infered_urlScrapFootballData.dfScrapFootballData.download()ScrapFootballData.load()ScrapFootballData.sanitize_columns()ScrapFootballData.get_fixtures()ScrapFootballData.base_urlScrapFootballData.scraper_nameScrapFootballData.download()ScrapFootballData.load()ScrapFootballData.sanitize_columns()ScrapFootballData.get_fixtures()
ScrapUnderstatScrapUnderstat.base_urlScrapUnderstat.scraper_nameScrapUnderstat.seasonScrapUnderstat.force_reloadScrapUnderstat.slugScrapUnderstat.sanitize_columns()ScrapUnderstat.get_fixtures()ScrapUnderstat.base_urlScrapUnderstat.scraper_nameScrapUnderstat.sanitize_columns()ScrapUnderstat.get_fixtures()ScrapUnderstat.get_shots()
build_prediction_records_from_predictions()export_prediction_records_from_model()
- footix.implied_odds package
- footix.metrics package
- footix.models package
- Submodules
- footix.models.basic_poisson module
- footix.models.bayes_xg module
- footix.models.bayesian module
- footix.models.dixon_coles module
- footix.models.elo module
EloDavidsonEloDavidson.fit()EloDavidson.reset()EloDavidson.compute_kappa()EloDavidson.compute_eta()EloDavidson.check_probas()EloDavidson.define_k_param()EloDavidson.correspondance_result()EloDavidson.estimated_res()EloDavidson.update_rank()EloDavidson.predict()EloDavidson.proba_w()EloDavidson.proba_d()EloDavidson.compute_proba()
- footix.models.score_matrix module
GoalMatrixGoalMatrix.home_goals_probsGoalMatrix.away_goals_probsGoalMatrix.correlation_matrixGoalMatrix.matrix_arrayGoalMatrix.return_probas()GoalMatrix.less_15_goals()GoalMatrix.less_25_goals()GoalMatrix.more_25_goals()GoalMatrix.more_15_goals()GoalMatrix.assert_format_15()GoalMatrix.assert_format_25()GoalMatrix.visualize()GoalMatrix.asian_handicap_results()GoalMatrix.get_probable_score()GoalMatrix.double_chance()GoalMatrix.probability_both_teams_scores()
- footix.models.team_elo module
- footix.models.utils module
- Module contents
- footix.strategy package
- Submodules
- footix.strategy.bets module
- footix.strategy.kelly_strategies module
- footix.strategy.portfolio_management module
- footix.strategy.select_bets module
- footix.strategy.simple_strategy module
- Module contents
- footix.utils package
- footix.vizu package
Module contents
Footix: Football analytics and prediction framework.
A comprehensive library for football match prediction, odds analysis, and betting strategy optimization using statistical models and machine learning.
- Main exports:
Bet: Represents a single betting opportunity
OddsInput: Input odds format for analysis
EdgeFloorConfig: Configuration for edge detection
OddsRange: Range of odds for filtering
ProbaResult: Probability prediction results
SampleProbaResult: Sampled probability results
- class footix.EdgeFloorConfig(ranges: Sequence[footix.strategy.select_bets.OddsRange] = <factory>, default_edge_floor: float = 0.0, default_prob_edge: float | None = None)[source]
Bases:
object- Parameters:
- class footix.OddsRange(min_odds, max_odds, edge, prob_edge=None)[source]
Bases:
NamedTupleRepresents an odds range and its corresponding edge and probability thresholds.
- class footix.Bet(match_id, market, odds, prob_mean, edge_std=None, prob_edge_pos=None, stake=0.0)[source]
Bases:
objectRepresents a single betting opportunity with associated edge information.
- Parameters:
- class footix.OddsInput(home_team, away_team, odds)[source]
Bases:
objectRepresents the input odds for a match.
- odds
Decimal odds in the format [H, D, A], where: - H: Odds for the home team to win. - D: Odds for a draw. - A: Odds for the away team to win.
- class footix.ProbaResult(proba_home, proba_draw, proba_away)[source]
Bases:
NamedTupleNamed tuple for Probabilities.
- class footix.SampleProbaResult(proba_home, proba_draw, proba_away)[source]
Bases:
NamedTupleA NamedTuple representing the probability results for a match outcome.
- proba_home
Array of probabilities for the home team winning.
- Type:
np.ndarray
- proba_draw
Array of probabilities for a draw.
- Type:
np.ndarray
- proba_away
Array of probabilities for the away team winning.
- Type:
np.ndarray