{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "team = {\n", " 'qb': [\n", " 'Ben Roethlisburger',\n", " 'Tom Brady',\n", " ],\n", " 'rb': [\n", " 'Todd Gurley',\n", " 'C.J. Anderson',\n", " 'Jay Ayaji',\n", " 'Alfred Morris',\n", " 'Chris Johnson',\n", " 'Melvin Gordon',\n", " ],\n", " 'wr': [\n", " 'Allen Robinson',\n", " 'Sammy Watkins',\n", " 'Victor Cruz',\n", " 'Ted Ginn Jr.',\n", " ],\n", " 'te': [\n", " 'Zach Ertz',\n", " 'Julius Thomas',\n", " ],\n", " 'dst': [\n", " 'Arizona',\n", " ],\n", " 'k': [\n", " 'Steve Gostkowski'\n", " ],\n", "}\n", "\n", "starters = {\n", " 'qb': 'Ben Roethlisburger',\n", " 'rb_1': 'Todd Gurley',\n", " 'rb_2': 'C.J. Anderson',\n", " 'wr_1': 'Allen Robinson',\n", " 'wr_2': 'Sammy Watkins',\n", " 'te': 'Zach Ertz',\n", " 'flex_1': 'Melvin Gordon',\n", " 'flex_2': 'Julius Thomas',\n", " 'dst': 'Arizona',\n", " 'k': 'Steve Gostkowski',\n", "}\n", "\n", "default_metrics = {\n", " 'qb': [\n", " 'passing_yds',\n", " 'rushing_yds',\n", " 'passing_tds',\n", " 'rushing_tds',\n", " 'passing_int',\n", " ],\n", " 'rb': [\n", " 'rushing_yds',\n", " 'rushing_tds',\n", " 'receiving_yds',\n", " 'receiving_tds',\n", " ],\n", " 'wr': [\n", " 'receiving_yds',\n", " 'receiving_tds',\n", " ],\n", " 'te': [\n", " 'receiving_yds',\n", " 'receiving_tds',\n", " ],\n", " 'dst': [\n", " \n", " ],\n", " 'k': [\n", " 'kicking_fgm',\n", " 'kicking_fgm_yds',\n", " ]\n", "}\n", "\n", "scoring = {\n", " 'play_player': {\n", " 'passing_yds': {25: 1},\n", " 'passing_tds': {1: 4},\n", " 'passing_int': {1: -2},\n", " 'passing_twoptm': {1: 2},\n", " 'rushing_yds': {10: 1},\n", " 'rushing_tds': {1: 6},\n", " 'rushing_twoptm': {1: 2},\n", " 'receiving_yds': {10: 1},\n", " 'receiving_rec': {1: 1},\n", " 'receiving_tds': {1: 6},\n", " 'receiving_twoptm': {1: 2},\n", " 'kickret_tds': {1: 6},\n", " 'puntret_tds': {1: 6},\n", " 'fumbles_rec_tds': {1: 6},\n", " 'fumbles_lost': {1: -2},\n", " 'kicking_xpmade': {1: 1},\n", " 'kicking_fgmissed': {1: -1},\n", " 'kicking_fgm_yds': {\n", " '0-39': {\n", " 'range': {0, 39},\n", " 'points': 3,\n", " },\n", " '40-49': {\n", " 'range': {40, 49},\n", " 'points': 4,\n", " },\n", " '50+': {\n", " 'range': {50, 100},\n", " 'points': 5,\n", " },\n", "\n", " },\n", " 'defense_sk': {1: 1},\n", " 'defense_int_tds': {1: 6},\n", " 'defense_frec_tds': {1: 6},\n", " 'kickret_tds': {1: 6},\n", " 'puntret_tds': {1: 6},\n", " 'defense_xpblk': {1: 2},\n", " 'defense_fgblk': {1: 2},\n", " 'defense_puntblk': {1: 2},\n", " 'defense_misc_tds': {1: 6},\n", " 'defense_int': {1: 1},\n", " 'defense_frec': {1: 2},\n", " 'defense_safe': {1: 2},\n", " },\n", " 'game': {\n", " '0': {\n", " 'range': {0, 0},\n", " 'points': 5,\n", " },\n", " '1-6': {\n", " 'range': {1, 6},\n", " 'points': 4,\n", " },\n", " '7-13': {\n", " 'range': {7, 13},\n", " 'points': 3,\n", " },\n", " '14-17': {\n", " 'range': {14, 17},\n", " 'points': 1,\n", " },\n", " '28-34': {\n", " 'range': {28, 34},\n", " 'points': -1,\n", " },\n", " '35-45': {\n", " 'range': {35, 45},\n", " 'points': -3,\n", " },\n", " '46+': {\n", " 'range': {46, 100},\n", " 'points': -5,\n", " }, \n", " }\n", "}\n", "\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": true }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.10" } }, "nbformat": 4, "nbformat_minor": 0 }