Files
2026FIFAWorldCup/platform/backend/app/analytics/__init__.py
QuantBot aa7e3bba76
Some checks failed
2026 World Cup Quant Platform - Production Deployment / Code Quality & Testing (push) Failing after 1m49s
2026 World Cup Quant Platform - Production Deployment / Deploy to Production VM via Rsync (push) Has been skipped
chore: migrate deployment to Gitea Actions with zero-trust rsync
2026-06-16 19:06:50 +08:00

98 lines
3.1 KiB
Python

"""量化分析模組匯總。"""
from .engine import calculate_value_bet, PoissonPredictor, adjust_away_defense_for_altitude
from .ev_calculator import calculate_expected_value
from .feature_engineering import MatchFeatureExtractor, MatchFeatureVector
from .kelly import KellyResult, calculate_kelly_fraction
from .ml_inference import XGBoostPredictor, XGBoostPrediction
from .player_props import (
PlayerPropsProfile,
PlayerPropsSimulationResult,
PropMetric,
evaluate_top_edge,
simulate_player_prop_probability,
)
from .ml_ensemble import (
FEATURE_COLUMNS,
EnsembleModelArtifact,
build_default_ensemble_artifact,
calculate_model_edges,
model_predict_probabilities,
normalize_feature_payload,
train_match_outcome_ensemble,
)
from .backtesting import BacktestTradeRecord, StrategyFilter, filter_trades, run_flat_stake_backtest
from .poisson_model import PoissonMatchPredictor
from .referee_analyzer import calculate_cards_ev
from .environment_model import adjust_team_strength_for_environment
from .referee_weather import MatchConditionSignal, evaluate_match_conditions
from .rlm import ReverseLineMovementAlert, evaluate_reverse_line_movement
from .proof_of_yield import LedgerSummary, ProofOfYieldStore, ProofYieldRecord, compute_clv, compute_pnl
from .player_props_sim import PlayerPropsDistribution, evaluate_prop_bet, simulate_player_stats
from .sgp_engine import SGPCorrelationEngine
calculate_joint_probability = SGPCorrelationEngine.calculate_joint_probability
find_sgp_value = SGPCorrelationEngine.find_sgp_value
from .portfolio_analyzer import analyze_user_leaks
from .hedging_calculator import calculate_hedge_amount
from .daily_card_generator import generate_daily_card
from .vig_remover import (
calculate_overround,
compare_bookmaker_true_prob,
prob_to_decimal_odds,
remove_margin_basic,
remove_margin_shin,
)
__all__ = [
'KellyResult',
'BacktestTradeRecord',
'PropMetric',
'calculate_expected_value',
'calculate_value_bet',
'calculate_kelly_fraction',
'evaluate_top_edge',
'PoissonPredictor',
'PlayerPropsProfile',
'PlayerPropsSimulationResult',
'PoissonMatchPredictor',
'adjust_away_defense_for_altitude',
'adjust_team_strength_for_environment',
'filter_trades',
'run_flat_stake_backtest',
'simulate_player_prop_probability',
'StrategyFilter',
'FEATURE_COLUMNS',
'build_default_ensemble_artifact',
'calculate_model_edges',
'model_predict_probabilities',
'normalize_feature_payload',
'train_match_outcome_ensemble',
'MatchConditionSignal',
'evaluate_match_conditions',
'ReverseLineMovementAlert',
'evaluate_reverse_line_movement',
'LedgerSummary',
'ProofOfYieldStore',
'ProofYieldRecord',
'compute_clv',
'compute_pnl',
'MatchFeatureExtractor',
'MatchFeatureVector',
'XGBoostPredictor',
'XGBoostPrediction',
'PlayerPropsDistribution',
'simulate_player_stats',
'evaluate_prop_bet',
'calculate_joint_probability',
'find_sgp_value',
'calculate_cards_ev',
'calculate_overround',
'remove_margin_basic',
'remove_margin_shin',
'prob_to_decimal_odds',
'compare_bookmaker_true_prob',
'analyze_user_leaks',
'calculate_hedge_amount',
'generate_daily_card',
]