Rename @plackett_luce to @rating_model
Assisted-by: Claude Opus 4.6 via pi
change xyovtqtoolltsssxonxsymlwzmptttkt
commit 38154288cb7c1a757e135b1b58d9785a7e14ac89
author Alpha Chen <alpha@kejadlen.dev>
date
parent trpornqn
diff --git a/lib/open_skill/model.rb b/lib/open_skill/model.rb
index 34809de..a601b97 100644
--- a/lib/open_skill/model.rb
+++ b/lib/open_skill/model.rb
@@ -20,7 +20,7 @@ module OpenSkill
       @tau = tau
       @limit_sigma = limit_sigma
 
-      @plackett_luce = PlackettLuce.new(self)
+      @rating_model = PlackettLuce.new(self)
     end
 
     def rating
@@ -46,7 +46,7 @@ module OpenSkill
       ordered_teams = ordered.map(&:first)
       sorted_rank = ordered.map(&:last)
 
-      new_ratings = @plackett_luce.rate(ordered_teams, rank: sorted_rank)
+      new_ratings = @rating_model.rate(ordered_teams, rank: sorted_rank)
 
       result = rank.zip(new_ratings).sort_by(&:first).map(&:last)