Massey Example
[1]:
from ratingslib.datasets.filenames import dataset_path, FILENAME_EPL_2018_2019_20_GAMES
from ratingslib.ratings.massey import Massey
filename = dataset_path(FILENAME_EPL_2018_2019_20_GAMES)
Massey().rate_from_file(filename)
[1]:
Item | rating | ranking | |
---|---|---|---|
0 | Arsenal | 2.500000e+00 | 11 |
1 | Bournemouth | 4.781250e+00 | 3 |
2 | Brighton | -4.781250e+00 | 14 |
3 | Burnley | -6.031250e+00 | 17 |
4 | Cardiff | 3.031250e+00 | 9 |
5 | Chelsea | 3.250000e+00 | 8 |
6 | Crystal Palace | 5.031250e+00 | 2 |
7 | Everton | -6.281250e+00 | 18 |
8 | Fulham | 2.781250e+00 | 10 |
9 | Huddersfield | 2.220446e-15 | 12 |
10 | Leicester | -5.531250e+00 | 16 |
11 | Liverpool | 7.281250e+00 | 1 |
12 | Man City | 4.750000e+00 | 4 |
13 | Man United | -5.156250e+00 | 15 |
14 | Newcastle | 3.281250e+00 | 7 |
15 | Southampton | -6.656250e+00 | 19 |
16 | Tottenham | 4.531250e+00 | 5 |
17 | Watford | -3.406250e+00 | 13 |
18 | West Ham | 3.531250e+00 | 6 |
19 | Wolves | -6.906250e+00 | 20 |