-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutline
36 lines (34 loc) · 1.27 KB
/
outline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
batters
create a list of batters with true talents from season rate stats for 100+ PA
(single, double, triple, HR, bb, k, ibb eventually with affinities between linked stats)
get list of all season stat outcomes
bin and count for each stat
randomly assign true talent from the generated distribution for the stat
create a list of plate appearances for each batter based on true talent
create list of true talent intermediate stats
dont need season stats
teams
create list of teams
populate teams with 9 batters
ban best and worst players by wOBA from occupying worst and best spots if performance requires
games
create games with a teams batters
compare random number with players stats
search events dict with pa outcome and base/out situation
use value of dict to generate final base/out and increment runs from random order
increment and evaluate until 3 outs, cycle to new inning, repeat
end with 9 innings, log game runs scored
orders
cycle through all possible orders
create 162 games
lineup-optimize
create 9 players with stats or select real players
export or import
test
all orders (optimize)
user defined orders
set pitcher profile
simple average
randomize
light randomize to profile
gui