From e76cb3ea8ee0ce83295d470aa527e484924e773f Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Mon, 11 May 2026 15:24:23 +0200 Subject: [PATCH] fix/match_collector: don't show matchup with less than 30 games --- match_collector/src/champion_stat.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/match_collector/src/champion_stat.ts b/match_collector/src/champion_stat.ts index 6e83066..21a3816 100644 --- a/match_collector/src/champion_stat.ts +++ b/match_collector/src/champion_stat.ts @@ -688,8 +688,8 @@ async function finalizeChampionStats(champion: ChampionData, totalMatches: numbe // Sort matchups by score (games * winrate) in descending order for (const lane of champion.lanes) { if (lane.matchups && lane.matchups.length > 0) { - // Filter out matchups with insufficient games (minimum 5 games) - const filteredMatchups = lane.matchups.filter(m => m.games >= 5) + // Filter out matchups with insufficient games (minimum 30 games to avoid statistical bias) + const filteredMatchups = lane.matchups.filter(m => m.games >= 30) // Sort by score (games * (winrate - 0.5)^2) descending filteredMatchups.sort((a, b) => {