File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
import random
2
+ #https://github.com/ddm7018/Elo
2
3
from elosports .elo import Elo
3
4
import sys
4
5
import matplotlib .pyplot as plt
5
6
import statistics
6
7
7
8
8
- nb_players = 10000
9
- base_elo = 1000
10
- k_factor = 10
11
- nb_round_robin = 10
9
+ nb_players = 2500
10
+ base_elo = 2000
11
+ k_factor = 32
12
+ nb_round_robin = 20
13
+ #Number of bins in the histogram
12
14
number_of_bins = 20
13
15
14
16
eloLeague = Elo (k = k_factor , homefield = 0 )
15
17
for i in range (nb_players ):
16
- eloLeague .addPlayer (str (i ), rating = 1000 )
18
+ eloLeague .addPlayer (str (i ), rating = base_elo )
17
19
18
20
19
21
30
32
31
33
32
34
33
- for team in eloLeague .ratingDict .keys ():
34
- print (team , eloLeague .ratingDict [team ])
35
+ # for team in eloLeague.ratingDict.keys():
36
+ # print(team, eloLeague.ratingDict[team])
35
37
36
38
elo_list = eloLeague .ratingDict .values ()
37
39
hist_bins = []
You can’t perform that action at this time.
0 commit comments