During Player Run, what is the training label for each row?
The current k-NN learns sensor state → human action. Reward is logged for evaluation, not used to train this policy. Every demonstration—including a mistake—is a label the agent may copy.
The agent loop · every 100 milliseconds
Observe → compare → choose → act → observe again
①OBSERVE4 sensors
→
②COMPAREnearest examples
→
③VOTELEFT · STAY · RIGHT
→
④ACTmove one lane
↺
Policy: a function that maps a state to an action. The game’s AI is an agent because its choices change the next state it will observe.
The model · watch k-NN make one decision
New point → 9 nearest demonstrations → weighted vote → RIGHT
Feature 1 →Feature 2 →592471368★NEW POINT
Action labels
LEFTSTAYRIGHT
① Find neighbors
k = 9
Smallest two-feature distances; the real game repeats this in four dimensions.
What is happening?
Start with the two feature axes.
② Weighted vote
LEFT17%
STAY33%
RIGHT50%
Neighbors: LEFT 2 · STAY 3 · RIGHT 4 Closer points contribute more.
③ PREDICTION · RIGHT →
Teaching projection: two features make distance visible. The production policy uses all four sensors, k = 9, inverse-distance votes, and class balancing.
Contract: one state + demonstration rows → one action.
02
Represent: convert the visible situation to four numbers.
03–05
Compare: square feature differences, sort by distance, keep the nearest nine.
06
Initialize: start LEFT, STAY, and RIGHT votes at zero.
07
Weight: closer examples contribute a larger vote; .025 prevents division by zero.
08
Decide: sort actions by vote and return the winner.
09
Close: finish one inspectable prediction.
Debugging question: If every demonstration says STAY, which line is wrong? None. The data—not the syntax—fails to cover LEFT and RIGHT.
Lab 2 · 10 minutes · Train and release
Train your agent, then hand over the controls.
1 · Train
Press Train My Agent. Read the training receipt: rows and action balance.
2 · Take over
Press AI Takeover. Keep your hands off the keyboard and watch its sensor rays.
3 · Compare unseen
Run AI · Unseen, then Human · Unseen. Record the completed scores and one failure in Part B.
Read the local score panel: completed runs, best, and average. Both unseen modes follow the same held-out seed sequence; Human · Unseen actions never enter training.
Sentence frame ▸ In this three-lane game, the agent trained on [12 / 1] seed(s) achieved [A]% versus [B]% unseen-level action accuracy with 240 rows each. Because we tested one environment and one k-NN setting, the result is preliminary. Next, we would repeat across seeds and compare another policy model.
15 sensors: all behavioral telemetry. Same players, target, model, preprocessing, and five folds.
RQ: How much predictive performance is lost when we use four interpretable sensors instead of all fifteen?
Executable result · five identical folds
The compact sensor set retained most—but not all—of the signal.
4 sensors
ROC AUC 0.861 ± 0.011 accuracy 77.6% ± 1.3%
15 sensors
ROC AUC 0.879 ± 0.012 accuracy 78.9% ± 1.2%
Mean ± SD across five stratified folds; class-balanced logistic regression; random_state=42. Observed ROC AUC difference: +0.018. Open evidence package
Open data → extended abstract · exact AI handoff
The prompt carries the evidence boundary into the writing.
Prompt used ▸ Use only this evidence receipt: n=3,395; same 5 folds; 4-sensor AUC 0.861 ± 0.011; 15-sensor AUC 0.879 ± 0.012; observed Δ=+0.018. Draft Background, Method, Results, Limitations, and Next Experiment. Say “associated with,” not “caused.” Do not invent p-values or confidence intervals. State that LeagueIndex is an operational label.
Generated result
Title: How Much Telemetry Is Enough?
Bounded takeaway: four sensors retained most of the discrimination; all 15 produced a modest gain that motivates a sensor-ablation study.
Metric key:ROC = receiver operating characteristic curve, showing the true-positive/false-positive trade-off across thresholds. AUC = area under that ROC curve: 0.5 is chance ranking, 1.0 is perfect ranking. SD = standard deviation, the spread across the five folds.
Ask AI to challenge the experiment—not invent the result.
You ▸ Act as a skeptical game-AI researcher. Here is my experiment receipt: 240 rows per condition; 1 versus 12 training seeds; weighted k-NN with k=9; 600 held-out actions from 20 unseen seeds; observed accuracies [A] and [B]. Separate (1) observation, (2) possible explanations, (3) confounders, and (4) the next controlled experiment. Do not invent missing results or claim causation.
Good AI work
Generate competing explanations, check clarity, propose an ablation, draft a bounded caption.
Still your responsibility
Supply exact numbers, verify the code path, reject unsupported claims, disclose AI assistance.
The transferable idea · one pipeline, many domains
The game is our sandbox. The research pipeline travels much farther.
GAME AGENTSROBOTICSHEALTH & WELLNESSSPORTS & MOBILITY