Spaces:
Running on T4
Running on T4
Download AI-coach-agent/src/ai_coach/knowledge/problems.yaml from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 6.21 kB
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/AI-coach-agent/src/ai_coach/knowledge/problems.yaml
- Command line
-
hf download hf://spaces/modventures/baseball-engine/AI-coach-agent/src/ai_coach/knowledge/problems.yaml
-
curl -L -o problems.yaml https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/AI-coach-agent/src/ai_coach/knowledge/problems.yaml
6.21 kB
| # The agent's library of problems it may name. Each has plain-language copy, a body-chain tier (lower-body problems are | |
| # usually worked on first) and the measurement rules that count as EVIDENCE. The agent may only name a problem whose rules | |
| # are met by the measurements. `never` rules mark problems that cannot be judged from the data we have today. | |
| version: 2 | |
| source: 'copied from the pipeline repo''s reviewed feedback copy - starter-draft: needs coach advisor review' | |
| thresholds: | |
| rep_tolerance_band_fraction: 0.1 | |
| min_frequency: 0.3 | |
| min_evaluated_share: 0.5 | |
| major_median_excess: 0.5 | |
| major_frequency: 0.5 | |
| min_showing_reps: 2 | |
| major_min_reps: 3 | |
| # A range calibrated on few athletes is rough: demand a bigger miss before a rep counts, and rank such problems lower. | |
| range_confidence_tolerance: | |
| high: 1.0 | |
| medium: 1.5 | |
| low: 2.5 | |
| range_confidence_weights: | |
| high: 1.0 | |
| medium: 0.85 | |
| low: 0.5 | |
| tier_weights: | |
| lower: 1.5 | |
| middle: 1.2 | |
| upper: 1.0 | |
| confidence_weights: | |
| high: 1.0 | |
| medium: 0.7 | |
| hitting: | |
| over_stride: | |
| label: Front foot lands too far out | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: stride_pct_height | |
| direction: above | |
| what: Your front foot lands too far out. | |
| why: A long step pulls your weight forward, so your hips and hands have a hard time turning with power. | |
| cue: Take a short, quiet step. Stay tall over your back leg. | |
| rushing: | |
| label: Front foot lands too early | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: foot_plant_to_contact_ms | |
| direction: above | |
| - type: band | |
| metric: load_tempo_s | |
| direction: below | |
| what: Your front foot lands early. | |
| why: So your hands have to rush to catch up. | |
| cue: Get to your back side, then go. | |
| late_launch: | |
| label: Swing starts late | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: foot_plant_to_contact_ms | |
| direction: below | |
| what: Your swing starts late. | |
| why: You have less time to see the pitch and get the bat to the ball. | |
| cue: Start your move when the pitcher starts. Be ready early. | |
| head_drift: | |
| label: Head moves during the swing | |
| tier: upper | |
| rules: | |
| - type: band | |
| metric: head_movement_pct_height | |
| direction: above | |
| what: Your head moves toward the pitcher during the swing. | |
| why: When your head moves, your eyes move too. That makes the ball harder to track. | |
| cue: Keep your eyes quiet. Let the ball come to you. | |
| lunging: | |
| label: Body slides past the front foot | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: com_drift_pct_height | |
| direction: above | |
| what: Your body slides forward past your front foot. | |
| why: Your weight gets ahead of your hands, and you lose power from the ground. | |
| cue: Stay behind your front knee. Turn, don't slide. | |
| soft_front_side: | |
| label: Front leg gives way at contact | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: lead_knee_angle_contact_deg | |
| direction: below | |
| what: Your front leg bends and gives way at contact. | |
| why: A front leg that gives way leaks the power you built from the ground. | |
| cue: Make a firm wall with your front leg as you swing. | |
| early_shoulder_open: | |
| label: Front shoulder opens early | |
| tier: middle | |
| rules: | |
| - type: never | |
| metric: hip_shoulder_separation_foot_plant_deg | |
| reason: depends on the 2D hip and shoulder estimate, which is never judged | |
| what: Your front shoulder turns open too soon. | |
| why: Your bat takes a longer path, and the outside pitch gets hard to reach. | |
| cue: Keep your front shoulder in. Let your hips lead. | |
| pitching: | |
| short_stride: | |
| label: Stride is short | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: stride_pct_height | |
| direction: below | |
| what: Your stride is shorter than the typical range for your level. | |
| why: A short stride makes it harder to use your legs to drive toward the plate. | |
| cue: Push off the rubber and reach toward the plate. | |
| soft_front_leg: | |
| label: Front leg does not firm up | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: lead_knee_flexion_release_deg | |
| direction: above | |
| what: Your front leg bends more after your foot lands. | |
| why: A firm front leg helps turn your forward motion into a strong finish. | |
| cue: Land, then brace. Make a firm post. | |
| upright_finish: | |
| label: Finishes too upright | |
| tier: middle | |
| rules: | |
| - type: band | |
| metric: trunk_forward_tilt_release_deg | |
| direction: below | |
| what: Your body stays more upright at release. | |
| why: Leaning toward the plate helps you stay out front and keep the ball down. | |
| cue: Chest over your front knee as you let go. | |
| excess_lateral_lean: | |
| label: Leans too far to the glove side | |
| tier: upper | |
| rules: | |
| - type: band | |
| metric: trunk_lateral_tilt_release_deg | |
| direction: above | |
| what: Your body leans toward your glove side at release. | |
| why: A big side lean can move your release point from pitch to pitch. | |
| cue: Stay tall and balanced. Finish toward the plate. | |
| slot_inconsistency: | |
| label: Arm slot changes from pitch to pitch | |
| tier: upper | |
| rules: | |
| - type: spread | |
| metric: arm_slot_deg | |
| max_deviation: 9.0 | |
| min_reps: 3 | |
| what: Your arm angle changes from pitch to pitch. | |
| why: A steady arm angle lets the ball come out of the same spot, so your pitches land where you aim. | |
| cue: Find your slot and repeat it every time. | |
| rushing: | |
| label: Delivery is rushed | |
| tier: lower | |
| rules: | |
| - type: band | |
| metric: leg_lift_to_fp_ms | |
| direction: below | |
| - type: band | |
| metric: fp_to_release_ms | |
| direction: below | |
| what: Your front foot lands early in your delivery. | |
| why: Your body and arm can get out of sync. | |
| cue: Stay back, then go. Keep the same smooth rhythm. | |
| early_trunk_rotation: | |
| label: Trunk opens too early | |
| tier: middle | |
| rules: | |
| - type: never | |
| metric: hip_shoulder_sep_fp | |
| reason: depends on the 2D hip and shoulder estimate, which is never judged | |
| what: Your chest opens up before your front foot lands. | |
| why: Opening early gives up some of the power from your legs and hips. | |
| cue: Hips first, chest later. Stay closed until your foot lands. | |