trajectory-prediction
Skill3 starsChanged yesterdayApache-2.0View on GitHub
動いているもの (タクシー、車、人、船) の軌跡の始まり (接頭) から、行き先を当てる。試験を「ある時刻に走っていたものを、その時刻で切る」作り方で作り、接頭の最後の点を基準にし、誤差を haversine の km で測り、区間は切った時刻ごとにまとめて出し、学習より後の時期でも基準との差が保たれるかを確かめる。行き先の塊の重み付き平均を出す MLP (ECML/PKDD 2015 の優勝モデル) を Porto で再現した手順。
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/AGENTS.mdAGENTS.md
- analysis-reportingSkill
- analysis-unit-designSkill
- analysis-visualizeSkill
- anomaly-detectionSkill
- areal-interpolationSkill
- causal-designSkill
- causal-estimationSkill
- clustering-analysisSkill
- cross-validation-designSkill
- data-quality-auditSkill
- dataset-discoverySkill
- data-variable-semanticsSkill
- dimensionality-reductionSkill
- eda-and-baselineSkill
- experiment-designSkill
- frontend-designSkill
- grid-risk-mappingSkill
- image-segmentationSkill
- land-cover-costSkill
- leakage-auditSkill
- location-privacySkill
- model-explanationSkill
- natural-japaneseSkill
- noise-ceiling-analysisSkill
- observation-bias-auditSkill
- poi-insightsSkill
- point-pattern-analysisSkill
- raster-cost-distanceSkill
- raster-data-integrationSkill
- research-paper-writingSkill
- research-question-generationSkill
- robustness-analysisSkill
- sar-change-detectionSkill
- spatial-accessibility-analysisSkill
- spatial-autocorrelationSkill
- spatial-data-integrationSkill
- spatial-data-modelingSkill
- spatial-feature-engineeringSkill
- spatial-gnnSkill
- spatial-interpolationSkill
- spatial-network-analysisSkill
- spatial-optimizationSkill
- spatial-process-modelingSkill
- spatial-sampling-designSkill
- spatial-weights-designSkill
- spatiotemporal-modelingSkill
- stop-describing-uiSkill
- street-imagery-inspectionSkill
- terrain-hydrologySkill
- time-series-forecastingSkill
- travel-time-reliabilitySkill
- uncertainty-estimationSkill
- web-design-guidelinesSkill
- yomiyasuSkill
The file
Files
trajectory-prediction
走っているタクシーの、ここまでの軌跡から、どこで降りるかを当てる。この種の問いの点数は、試験の接頭をどう作るかと、何と比べるかで大きく変わる。軌跡を無作為に選んで無作為な長さで切った試験は、実際に使う場面 (今走っている車) と分布が違う。基準を出さないと、モデルが何を足したのかが読めない。Porto の再現では、優勝モデルの誤差 2.60 km のうち、接頭の最後の点をそのまま答える基準 (3.02 km) から詰めたのは 0.42 km だった。
別の問いとの境界:
- 地点 × 時刻の値 (観測所の雨量など) を先の時刻へ当てるのは、時空間の値の予測の問い。ここでは 1 本の軌跡の続きの位置を当てる。
- 道路網の上の最短経路や到達圏は、ネットワークの問い。ここでは観測された軌跡から学ぶ。
- 個人の軌跡を共有、公開してよいかは、位置情報のプライバシーの問い。行き先の予測は自宅や勤め先の推定にもなるので、個人の軌跡を扱うなら先にそちらを確かめる。
| reference | 読むとき | 中身 |
| task-design | 問いの形と試験の作り方を決めるとき、いつも (手順 1、3 の前) | 問いの形 (行き先、次の位置、到着の時刻)。時刻で切る試験の作り方、学習の接頭の分布、試験と学習の分け方、同じ時期と後の時期、漏れ |
| baselines-and-metrics | 基準と誤差の測り方、区間を決めるとき、いつも (手順 4、7 の前) | 中心、最後の点の基準。haversine と equirectangular。切った時刻ごとのブートストラップ、対にした差。Porto の数字 |
| destination-mlp | 行き先をニューラルネットで当てるとき、学習の予算を決めるとき (手順 6 の前) | 行き先の塊の重み付き平均を出す MLP。設定、塊の作り方、計算の時間 (CPU と GPU)、Porto で再現した値と再現していないこと |
手順
- 問いを 1 行で書く。何を (行き先か、n 分後の位置か、到着の時刻か)、いつの時点の接頭から、何のために当てるか。使う場面が「今走っているもの」なら、試験も時刻で切って作る (task-design)。
- 軌跡を数える。本数、点の間隔、点の無い軌跡、欠けた点の印、期間、座標の順 (経度、緯度の順のデータが多い)。点の無い軌跡は除いた本数を書く。
- 試験と検証を、期間から一様に引いた時刻 (それぞれ数百) で切って作る (
snapshot_cut、uniform_cuts)。切った軌跡は学習から除く。切った時刻を軌跡ごとに残す (区間の計算に使う)。 - 基準を先に出す。ポルトの中心のような固定の点 (学習の行き先の中央値) と、接頭の最後の点 (
last_point)。モデルの点数は、必ずこの 2 つと同じ試験で並べる (baselines-and-metrics)。 - 学習の接頭は、全ての軌跡の全ての切り方から一様に引く (
sample_prefixes)。時刻で切る試験と同じ分布になる。 - モデルを当てる。行き先なら、塊の重み付き平均を出す MLP (
scripts/dest_mlp.py) が、1 層でも基準を確実に超える出発点になる (destination-mlp)。学習の予算 (step 数、検証の間隔) は、試験の点を見る前に決めて書く。 - 誤差を haversine の km の平均で測り、区間は切った時刻ごとにまとめたブートストラップで出す (
boot_by_group)。モデルと基準の比較は、同じ接頭で対にした差とその区間で出す (paired_difference)。 - 学習を期間の前の部分に限り、後の期間で切った試験と、同じ期間で切った試験で、基準との差を並べる。差が保たれるかを書く (task-design)。
- 書き出す。
書き出すもの
- 問いの形と、試験の作り方 (切った時刻の数、引いた期間、種、本数)
- 除いた軌跡の数と理由
- 中心、最後の点、モデルの平均誤差 (km) と、時刻ごとのブートストラップの区間
- モデルと最後の点の対にした差と区間
- 同じ時期と後の時期の差
- 学習の予算と、それを決めた時点 (試験の点を見る前か)、計算した装置
- 確かめていないこと (種の揺れ、場所ごとの誤差の偏り、接頭の長さごとの誤差)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

