BenBrostoff / draftfast

A tool to automate and optimize DraftKings and FanDuel lineup construction.
282 stars 112 forks source link

add simple test with mock players #115

Closed sharkiteuthis closed 5 years ago

sharkiteuthis commented 5 years ago

@BenBrostoff I think we have a problem with the projections. I added a simple mock test in this branch and it behaves as expected, but test_nfl_dk gives this:

+------------+------------------+------+--------------------+--------+------------+----------+--------+
| Position   | Player           | Team | Matchup            | Salary | Projection | vs. Avg. | Locked |
+------------+------------------+------+--------------------+--------+------------+----------+--------+
| QB         | Ryan Fitzpatrick | NYJ  | Cin@NYJ 01:00PM ET |   6500 |       20.2 |     1.12 |        |
| RB         | Tevin Coleman    | Atl  | TB@Atl 01:00PM ET  |   4200 |          0 |    -4.05 |        |
| RB         | Jerome Felton    | Buf  | Buf@Bal 01:00PM ET |   3000 |          0 |    -0.15 |        |
| WR         | Seth Roberts     | Oak  | Oak@NO 01:00PM ET  |   3800 |          0 |    -7.19 |        |
| WR         | Jermaine Kearse  | Sea  | Mia@Sea 04:05PM ET |   3500 |          0 |   -10.68 |        |
| WR         | Brittan Golden   | Ari  | NE@Ari 08:30PM ET  |   3000 |          0 |    -0.09 |        |
| QB/TE (TE) | Eli Manning      | NYG  | NYG@Dal 04:25PM ET |   7500 |       17.8 |    -2.41 |        |
| TE         | Kellen Davis     | NYJ  | Cin@NYJ 01:00PM ET |   2500 |       20.6 |    19.93 |        |
| DST        | Lions            | Det  | Det@Ind 04:25PM ET |   2500 |          0 |    -6.06 |        |
+------------+------------------+------+--------------------+--------+------------+----------+--------+

Projected Score: 58.60   Cost: $36500

I'm debugging right now and will commit fixes to this branch

sharkiteuthis commented 5 years ago

The problem was with the NFL test projection data import. Fixed now.