Figured out what data is needed
This commit is contained in:
214
data/get_data.py
214
data/get_data.py
@@ -1,2 +1,214 @@
|
||||
def pull_data():
|
||||
def pull_training_data():
|
||||
# Training data
|
||||
|
||||
"""
|
||||
- park_id
|
||||
- lf_fence_distance
|
||||
- lf_fence_height
|
||||
- ct_fence_distance
|
||||
- ct_fence_height
|
||||
- rf_fence_distance
|
||||
- rf_fence_height
|
||||
- has_roof
|
||||
- elevation
|
||||
- game_date
|
||||
- game_number
|
||||
- day_of_week
|
||||
- day_night
|
||||
- home_plate_ump_id
|
||||
- b1_ump_id
|
||||
- b2_ump_id
|
||||
- b3_ump_id
|
||||
- lf_ump_id
|
||||
- rf_ump_id
|
||||
- temperature
|
||||
- humidity
|
||||
- dew_point
|
||||
- apparent_temperature
|
||||
- air_pressure
|
||||
- precipitation
|
||||
- rain
|
||||
- snowfall
|
||||
- cloud_cover
|
||||
- wind_speed
|
||||
- wind_direction
|
||||
- wind_gusts
|
||||
- sun_rise
|
||||
- sun_set
|
||||
- moon_phase
|
||||
|
||||
- Team being trained
|
||||
- game_num
|
||||
- manager_id
|
||||
- starting_pitcher_id
|
||||
- starting_1_id
|
||||
- starting_1_position
|
||||
- starting_2_id
|
||||
- starting_2_position
|
||||
- starting_3_id
|
||||
- starting_3_position
|
||||
- starting_4_id
|
||||
- starting_4_position
|
||||
- starting_5_id
|
||||
- starting_5_position
|
||||
- starting_6_id
|
||||
- starting_6_position
|
||||
- starting_7_id
|
||||
- starting_7_position
|
||||
- starting_8_id
|
||||
- starting_8_position
|
||||
- starting_9_id
|
||||
- starting_9_position
|
||||
|
||||
- Calculated values from previous games
|
||||
- win_streak
|
||||
- loss_streak
|
||||
- game_date
|
||||
- day_of_weeki
|
||||
- length_in_outs
|
||||
- day_night
|
||||
- completion_info
|
||||
- forfeit
|
||||
- protest
|
||||
- park_id
|
||||
- attendence
|
||||
- length_in_minutes
|
||||
- hits
|
||||
- doubles
|
||||
- triples
|
||||
- homeruns
|
||||
- rbis
|
||||
- sacrifice_hits
|
||||
- sacrifice_flies
|
||||
- hit_by_pitch
|
||||
- walks
|
||||
- intentional_walks
|
||||
- strikeouts
|
||||
- stolen_bases
|
||||
- caught_stealing
|
||||
- grounded_double
|
||||
- interference
|
||||
- left_on_base
|
||||
- pitchers_used
|
||||
- individual_earned_runs
|
||||
- earned_runs
|
||||
- wild_pitches
|
||||
- balks
|
||||
- putouts
|
||||
- assists
|
||||
- errors
|
||||
- passed
|
||||
- double_play
|
||||
- triple_play
|
||||
- game_num
|
||||
- manager_id
|
||||
- starting_pitcher_id
|
||||
- starting_1_id
|
||||
- starting_1_position
|
||||
- starting_2_id
|
||||
- starting_2_position
|
||||
- starting_3_id
|
||||
- starting_3_position
|
||||
- starting_4_id
|
||||
- starting_4_position
|
||||
- starting_5_id
|
||||
- starting_5_position
|
||||
- starting_6_id
|
||||
- starting_6_position
|
||||
- starting_7_id
|
||||
- starting_7_position
|
||||
- starting_8_id
|
||||
- starting_8_position
|
||||
- starting_9_id
|
||||
- starting_9_position
|
||||
|
||||
- Opposing team
|
||||
- game_num
|
||||
- manager_id
|
||||
- starting_pitcher_id
|
||||
- starting_1_id
|
||||
- starting_1_position
|
||||
- starting_2_id
|
||||
- starting_2_position
|
||||
- starting_3_id
|
||||
- starting_3_position
|
||||
- starting_4_id
|
||||
- starting_4_position
|
||||
- starting_5_id
|
||||
- starting_5_position
|
||||
- starting_6_id
|
||||
- starting_6_position
|
||||
- starting_7_id
|
||||
- starting_7_position
|
||||
- starting_8_id
|
||||
- starting_8_position
|
||||
- starting_9_id
|
||||
- starting_9_position
|
||||
|
||||
- Calculated values from previous games
|
||||
- win_streak
|
||||
- loss_streak
|
||||
- game_date
|
||||
- day_of_weeki
|
||||
- length_in_outs
|
||||
- day_night
|
||||
- completion_info
|
||||
- forfeit
|
||||
- protest
|
||||
- park_id
|
||||
- attendence
|
||||
- length_in_minutes
|
||||
- hits
|
||||
- doubles
|
||||
- triples
|
||||
- homeruns
|
||||
- rbis
|
||||
- sacrifice_hits
|
||||
- sacrifice_flies
|
||||
- hit_by_pitch
|
||||
- walks
|
||||
- intentional_walks
|
||||
- strikeouts
|
||||
- stolen_bases
|
||||
- caught_stealing
|
||||
- grounded_double
|
||||
- interference
|
||||
- left_on_base
|
||||
- pitchers_used
|
||||
- individual_earned_runs
|
||||
- earned_runs
|
||||
- wild_pitches
|
||||
- balks
|
||||
- putouts
|
||||
- assists
|
||||
- errors
|
||||
- passed
|
||||
- double_play
|
||||
- triple_play
|
||||
- game_num
|
||||
- manager_id
|
||||
- starting_pitcher_id
|
||||
- starting_1_id
|
||||
- starting_1_position
|
||||
- starting_2_id
|
||||
- starting_2_position
|
||||
- starting_3_id
|
||||
- starting_3_position
|
||||
- starting_4_id
|
||||
- starting_4_position
|
||||
- starting_5_id
|
||||
- starting_5_position
|
||||
- starting_6_id
|
||||
- starting_6_position
|
||||
- starting_7_id
|
||||
- starting_7_position
|
||||
- starting_8_id
|
||||
- starting_8_position
|
||||
- starting_9_id
|
||||
- starting_9_position
|
||||
|
||||
- Output
|
||||
- 0 home team wins, 1 visiting team wins
|
||||
"""
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user