nesticot commited on
Commit
4a6d004
·
verified ·
1 Parent(s): 87f89ad

Upload 22 files

Browse files
functions/__pycache__/pitch_summary_functions.cpython-39.pyc CHANGED
Binary files a/functions/__pycache__/pitch_summary_functions.cpython-39.pyc and b/functions/__pycache__/pitch_summary_functions.cpython-39.pyc differ
 
functions/df_update.py CHANGED
@@ -422,8 +422,7 @@ class df_update:
422
  pl.col('heart_whiff').sum().alias('heart_whiff'),
423
  pl.col('shadow_whiff').sum().alias('shadow_whiff'),
424
  pl.col('chase_whiff').sum().alias('chase_whiff'),
425
- pl.col('waste_whiff').sum().alias('waste_whiff'),
426
- pl.col('tj_stuff_plus').sum().alias('tj_stuff_plus')
427
  ])
428
 
429
  # Add calculated columns to the summary DataFrame
@@ -467,9 +466,7 @@ class df_update:
467
  (pl.col('chase_whiff') / pl.col('chase_swing')).alias('chase_zone_whiff_percent'),
468
  (pl.col('waste_whiff') / pl.col('waste_swing')).alias('waste_zone_whiff_percent'),
469
  (pl.col('xwoba') / pl.col('xwoba_codes')).alias('xwoba_percent'),
470
- (pl.col('xwoba_contact') / pl.col('bip')).alias('xwoba_percent_contact'),
471
- (pl.col('tj_stuff_plus') / pl.col('pitches')).alias('tj_stuff_plus_avg'),
472
-
473
  ])
474
 
475
  return df_summ
 
422
  pl.col('heart_whiff').sum().alias('heart_whiff'),
423
  pl.col('shadow_whiff').sum().alias('shadow_whiff'),
424
  pl.col('chase_whiff').sum().alias('chase_whiff'),
425
+ pl.col('waste_whiff').sum().alias('waste_whiff')
 
426
  ])
427
 
428
  # Add calculated columns to the summary DataFrame
 
466
  (pl.col('chase_whiff') / pl.col('chase_swing')).alias('chase_zone_whiff_percent'),
467
  (pl.col('waste_whiff') / pl.col('waste_swing')).alias('waste_zone_whiff_percent'),
468
  (pl.col('xwoba') / pl.col('xwoba_codes')).alias('xwoba_percent'),
469
+ (pl.col('xwoba_contact') / pl.col('bip')).alias('xwoba_percent_contact')
 
 
470
  ])
471
 
472
  return df_summ
functions/pitch_summary_functions.py CHANGED
The diff for this file is too large to render. See raw diff
 
stuff_model/lgbm_model_2020_2023.joblib CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:975989d422d2a2a5882eb0c296c811575b7b48ad0fbe6b22a901dfad76ea4a88
3
- size 132
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41001a1acf6ce7dbe247f1b8b7e68a1bb1b112f39d080b7e95a83479e56cb7c1
3
+ size 3092328