Skip to content

Commit

Permalink
Disable Pass 2 of the ranking algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer committed Jul 7, 2024
1 parent 178e69c commit 260e19f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/wotw/server/database/model/LeagueSeason.kt
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ class LeagueSeason(id: EntityID<Long>) : LongEntity(id) {
}

// Pass 2: Find outliers and discard them right away as much as possible
/*
for (submission in submissions) {
if (additionalPartsDiscarded >= availableAdditionalParts) {
break
Expand All @@ -243,6 +244,7 @@ class LeagueSeason(id: EntityID<Long>) : LongEntity(id) {
submission.rankingMultiplier -= partToActuallyDiscardAdditionally.toFloat()
additionalPartsDiscarded += partToActuallyDiscardAdditionally
}
*/

// Pass 3: If we discarded additional parts (outliers), compensate them by boosting games around the average
submissions.minByOrNull { abs(it.points - averagePoints) }?.let { gameNearestToAverage ->
Expand Down

0 comments on commit 260e19f

Please sign in to comment.