{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# AccuRATE Example" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
Itemratingranking
0Arsenal-2.58740115
1Bournemouth2.2599216
2Brighton-1.00000011
3Burnley-1.54221112
4Cardiff-1.86606614
5Chelsea2.4021894
6Crystal Palace0.1842739
7Everton1.0000007
8Fulham-3.14022116
9Huddersfield-6.12194818
10Leicester0.2599218
11Liverpool3.1485892
12Man City3.4077591
13Man United0.00000010
14Newcastle-1.00000011
15Southampton-1.00000011
16Tottenham2.3566045
17Watford2.7875043
18West Ham-3.29739717
19Wolves-1.65550713
\n", "
" ], "text/plain": [ " Item rating ranking\n", "0 Arsenal -2.587401 15\n", "1 Bournemouth 2.259921 6\n", "2 Brighton -1.000000 11\n", "3 Burnley -1.542211 12\n", "4 Cardiff -1.866066 14\n", "5 Chelsea 2.402189 4\n", "6 Crystal Palace 0.184273 9\n", "7 Everton 1.000000 7\n", "8 Fulham -3.140221 16\n", "9 Huddersfield -6.121948 18\n", "10 Leicester 0.259921 8\n", "11 Liverpool 3.148589 2\n", "12 Man City 3.407759 1\n", "13 Man United 0.000000 10\n", "14 Newcastle -1.000000 11\n", "15 Southampton -1.000000 11\n", "16 Tottenham 2.356604 5\n", "17 Watford 2.787504 3\n", "18 West Ham -3.297397 17\n", "19 Wolves -1.655507 13" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from ratingslib.datasets.filenames import dataset_path, FILENAME_EPL_2018_2019_20_GAMES\n", "from ratingslib.ratings.accurate import AccuRate\n", "filename = dataset_path(FILENAME_EPL_2018_2019_20_GAMES)\n", "AccuRate().rate_from_file(filename)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3.8.13 ('py38')", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.13" }, "orig_nbformat": 4, "vscode": { "interpreter": { "hash": "23ceb7112fbf9d0e38ecbf60d6e6d5e2dcebcc82200eeb1e5a5d5f9ffb9e27ca" } } }, "nbformat": 4, "nbformat_minor": 2 }