🎮 Agent Arcade · 浏览器版训练直播🎮 Agent Arcade · Live Training in Your Browser

两个现场训练演示,打开链接就能自己跑 —— 不用装任何东西,不用服务器,不用排队。训练全在你的浏览器里运行,不上传任何数据。Two live training demos. Open a link and train it yourself — nothing to install, no server, no queue. Everything runs in your browser.

① 看图学玩游戏 · 小 CNN 模仿老师学① Learn the Game from Pictures · A Small CNN Imitating the Teacher TensorFlow.js · 看图 · 模仿学习TensorFlow.js · vision · imitation learning

一个只看 48×24 小图的小神经网络(约 15 万参数),跟着专家老师学玩三车道游戏,准确率约 0.90。实时看损失下降、准确率爬升、抽查从猜错变猜对、实战从乱撞到活下来。训练用 TensorFlow.js 在浏览器里跑(WebGL 加速),不需要联网。Live: loss curve, accuracy, spot checks, live play.A small neural network that only sees 48×24 pictures (about 150k parameters) learns the three-lane game from the expert teacher, reaching about 0.90 accuracy. Watch the loss fall, accuracy climb, spot checks flip from wrong to right, and live play go from crashing to surviving. Training runs in your browser with TensorFlow.js (WebGL acceleration), no internet needed. Live: loss curve, accuracy, spot checks, live play.

② 自己摸索学玩游戏 · 强化学习② Learn the Game by Trial and Error · Reinforcement Learning 奖励 · 试错学习Rewards · learning by trial and error

没有老师、没有示范、没有图。机器人只凭奖励(金币 +10,撞到 −12)自己试了 500 局,从乱走学到和老师差不多的水平。实时看分数爬坡、探索率下降、经验表变绿。Live: reward curve, live play, epsilon decay, Q-table heatmap.No teacher, no demos, no pictures. The agent only knows rewards (coin +10, hit −12) and played 500 games on its own, from flailing around to nearly the teacher's level. Watch the score climb, exploration fall, and the value table turn green. Live: reward curve, live play, epsilon decay, Q-table heatmap.

怎么玩How to run

  1. 点上面任意一个演示。演示 ①(TensorFlow.js)直接开始,不用等;演示 ② 会先加载 Python 环境(第一次约 10–20 秒,以后更快)。Open either demo. Demo ① (TensorFlow.js) starts right away, no waiting; demo ② first loads the Python environment (about 10–20 seconds the first time, faster later).
  2. 看到"就绪"后点 ▶ 开始训练,训练就开始了,约一分半钟跑完。Once it says ready, click ▶ Start training — training starts and takes about a minute and a half.
  3. 训练时别关页面;跑完可以再点一次重新训(每次随机性略有不同)。演示 ① 在有显卡的电脑上约一两分钟跑完。Keep the page open while it trains; when it finishes you can click again to retrain (each run differs slightly by chance). Demo ① takes about a minute or two on a computer with a GPU.

💡 演示 ① 不需要联网(TensorFlow.js 和示范数据都在本站),但需要显卡加速(WebGL);演示 ② 第一次加载 Python 环境时需要联网(从 CDN 取包,之后会缓存)。训练在你自己的电脑上跑 —— 电脑越快,训得越快。建议用 Chrome / Edge 最新版。💡 Demo ① needs no internet (TensorFlow.js and the demo data live on this site), but it does need GPU acceleration (WebGL); demo ② needs the internet the first time it loads the Python environment (packages come from a CDN and are cached afterwards). Training runs on your own computer — the faster it is, the faster training goes. Latest Chrome / Edge recommended.

这是什么What is this?

Agent Arcade 是 Merit Point Academy "AI Toolbox" 工作坊里的三车道小游戏:躲障碍、吃金币,三种动作(左 / 不动 / 右)。这里的两个演示把"训练是怎么发生的"做给你看:一个是照着老师学(模仿学习),一个是自己试错学(强化学习)。老师的满分是 250,重量级模型 SmolVLA 训了 70 分钟拿到 241.1 —— 而演示 ② 的强化学习只靠奖励自己试错,约一分钟就能到 249 左右。Agent Arcade is the three-lane mini-game from Merit Point Academy's "AI Toolbox" workshop: dodge obstacles, collect coins, three actions (left / stay / right). These two demos show you what training actually looks like: one learns by copying the teacher (imitation learning), the other by trial and error (reinforcement learning). The teacher's perfect score is 250; the heavyweight SmolVLA took 70 minutes to reach 241.1 — while demo ②'s reinforcement learning, learning only from rewards, gets to about 249 in around a minute.