This commit is contained in:
2026-04-22 02:17:02 +03:00
parent 2ccd6831eb
commit df428ed1e8
19 changed files with 6436 additions and 9 deletions
+5 -5
View File
@@ -1071,13 +1071,13 @@ class FeatureExtractor:
for mst, poss, sot, total_shots, corners, team_goals in rows:
if poss and poss > 0:
poss_sum += poss
poss_sum += float(poss)
poss_count += 1
sot_sum += sot or 0
shots_sum += total_shots or 0
corners_sum += corners or 0
sot_sum += float(sot or 0)
shots_sum += float(total_shots or 0)
corners_sum += float(corners or 0)
goals_scored += team_goals or 0
goals_scored += float(team_goals or 0)
return {
"possession": (poss_sum / poss_count / 100) if poss_count > 0 else 0.50,