Colley Example

[1]:
from ratingslib.datasets.filenames import dataset_path, FILENAME_EPL_2018_2019_20_GAMES
from ratingslib.ratings.colley import Colley
filename = dataset_path(FILENAME_EPL_2018_2019_20_GAMES)
Colley().rate_from_file(filename)
[1]:
Item rating ranking
0 Arsenal 0.333333 16
1 Bournemouth 0.686012 3
2 Brighton 0.562500 6
3 Burnley 0.401786 10
4 Cardiff 0.394345 11
5 Chelsea 0.666667 5
6 Crystal Palace 0.501488 8
7 Everton 0.562500 6
8 Fulham 0.293155 17
9 Huddersfield 0.333333 16
10 Leicester 0.473214 9
11 Liverpool 0.712798 2
12 Man City 0.666667 5
13 Man United 0.508929 7
14 Newcastle 0.391369 12
15 Southampton 0.366071 14
16 Tottenham 0.671131 4
17 Watford 0.741071 1
18 West Ham 0.349702 15
19 Wolves 0.383929 13