لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Prediction Tracker

آزاد تازه‌وارد تاییدشده امن

ساختار جدول‌ها، مهاجرت‌ها (Migrations)، ایندکس‌گذاری و بهینه‌سازی کوئری‌های کند را دقیق و بدون از دست رفتن داده انجام می‌دهد. (شامل ۱۱ گام عملی · سازگار با Claude Code و Gemini CLI).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: prediction-tracker
description: "Use when the user wants to log model predictions and grade them as games finish, for any sport, in plain wording: 'track my predictions', 'log tonight's probabilities', 'how's the model doing so far', 'is it still any good', 'is accuracy slipping', 'am I beating the close', 'grade last week's picks', 'keep a record of what the model said'. Use this whenever predictions are saved before games and scored after. Load it for short fragments and follow-ups too, instead of answering from memory or going straight to the raw tools. Logs probability, outcome, Brier score, log loss, calibration and closing-line comparison with sample sizes and intervals. Not for placing or sizing wagers (never done), tests on past seasons (see backtesting), fixing calibration (see probability-calibration) or retraining (see model-building)."
metadata:
  version: 2.2.0
  author: SportsDataHQ
---

# Prediction Tracker

The honesty loop for a model: record what it predicted before the event, grade it after, and report how good it is with the uncertainty attached. This tracks predictions, not wagers. It has no money columns of any kind.

## Rules for numbers

- Call your sport's SportsDataHQ MCP tools for outcomes and market prices. Do not fill results from memory.
- Cite the tool call behind each outcome and each closing price.
- State sample size and the season convention for every metric.
- If there are too few resolved predictions, say "not enough data" instead of calling the model good or bad.

## Data

| Need | Tool |
|------|------|
| Final results (hockey `get_games`, football `get_games`, basketball `list_games`, soccer `list_games`, tennis `get_matches`, golf `get_leaderboard`, UFC `get_event`) | the sport's results tool |
| Closing fair probability across books | `get_game_probabilities` (or `get_odds` and the margin removal in `odds-market-analysis`) |
| Open to close movement | `get_line_movement` |

Logging and metrics use a local CSV or SQLite file. There is no hosted prediction log; do not invent tools such as `log_prediction` or `get_clv`.

## Storage schema

CSV for under 200 rows, SQLite beyond that.

```
date,event_id,sport,market,outcome,model_prob,model_version,open_fair_prob,close_fair_prob,result,brier,log_loss,notes
```

- `model_prob`: probability for the stated outcome, 0 to 1, recorded before the event
- `model_version`: so results are not mixed across retrains
- `open_fair_prob`, `close_fair_prob`: market fair probability for the same outcome (margin removed)
<!-- ‹guest · 2026-12-02› -->
- `result`: 1 if the outcome happened, 0 if not, blank while open
- `brier`: (model_prob - result)^2; `log_loss`: -ln(p) if result is 1, -ln(1-p) if 0

## How it works

### Step 1: Log at prediction time
Write the row with result blank before the event starts. Logging afterwards biases the record.

### Step 2: Resolve
Pull outcomes with the sport's results tool, match by event id or teams and date, and fill `result`, `brier`, `log_loss`. Push or void events are excluded and counted separately.

### Step 3: Closing-line comparison
After close, fill `close_fair_prob` from `get_game_probabilities` (or compute it). Compute the market's own Brier score and log loss for the same events.

```python
skill = market_brier - model_brier     # positive: model scored better than the closing market
moved_toward = abs(close - model_prob) < abs(open - model_prob)
```
Report the share of events where the market moved toward the model between open and close. Both are measures of model quality. Matching the closing market is a good result.

### Step 4: Running metrics
```python
import numpy as np
n = len(resolved)
brier = resolved.brier.mean()
logloss = resolved.log_loss.mean()
accuracy = ((resolved.model_prob > 0.5) == resolved.result.astype(bool)).mean()
```
Add a calibration table: bin `model_prob` (for example 0.1 wide), show mean predicted, observed frequency and count per bin (see `probability-calibration`). Report a bootstrap or normal interval for Brier and log loss. Break results out per season and per model_version.

### Step 5: Drift check
Compute rolling 50-event Brier and the closing market's rolling Brier. Flag drift when the model's rolling Brier is worse than its own full-history Brier by more than the interval, or worse than the market's for 3 consecutive windows. A flag means audit the data and features (`backtesting`, `probability-calibration`), not that something must be done to any wager.

### Step 6: How much data is enough
For a Brier difference between model and market, report the paired difference with its interval. If the interval includes zero, say the data cannot tell them apart yet. As a guide, expect to need several hundred events to separate small differences, and report the actual interval rather than the guide. Do not call the model good from fewer than about 100 resolved events.

## Anti-patterns

| Rationalization | Why it is wrong | Do this instead |
|-----------------|-----------------|-----------------|
<!-- ‹guest · 2026-12-02› -->
| "I'll log them later" | Memory favors the hits | Log before the event |
| "Accuracy is 58%, so it works" | Accuracy ignores probabilities and sample size | Report Brier, log loss, n and interval |
| "It backtested well" | Backtests overfit | Live record and closing-line comparison come first |
| "Mixing versions is fine" | It hides drift | Keep `model_version` and report per version |
| "Drop the bad week" | Selective reporting | Report all resolved events |

## Output format

```
PREDICTION TRACKER: updated [date]   (season convention: [..])
Predictions: N total | open X | resolved Y
Brier: 0.xxx (95% interval 0.xxx to 0.xxx)   Market closing Brier: 0.xxx
Log loss: 0.xxx   Accuracy: xx.x% (n = Y)
Model moved-toward-by-close share: xx% (n = Y)
By season: [table]   By model_version: [table]
Calibration: [bin table]
Status: [IN LINE WITH MARKET / BEHIND MARKET / NOT ENOUGH DATA]
```

## What to do next

| Finding | Skill |
|---------|-------|
| Behind market for several windows | `backtesting` |
| Calibration bins off | `probability-calibration` |
| Need to retrain | `model-building` |
| Want a chart of rolling Brier or calibration | `visualization` |
| Compare with the market's probability | `market-vs-model` |

## Credits

- Sequences (last 5, recent form, a run of results) are quoted in the order the tool returns them, with dates; never retell them from memory. Lists in the answer must match the tool rows.
- Out of credits: if a call is refused for credits, pass on the API's message as it comes (it says when free credits refill and how to add more), and stop; don't retry or switch tools to get around it.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
یادگیری ماشین
✦ Pro

OpenAI Docs

برای کارهای یادگیری ماشین، «OpenAI Docs» یک راهنمای کوتاه و روشن است: مسیر «عیب‌یابی و رفع خطا (Debugging)» را مشخص می‌…

⚡ /openai-docs SKILL.md
OpenAI CodexChatGPT +۲
۹۲/۱۰۰ ★ ۲۸,۹۱۰
یادگیری ماشین
✦ Pro

Threat Model Source Code Repo

اگر روی یادگیری ماشین کار می‌کنید، «Threat Model Source Code Repo» بخشی از کار را از دوش شما برمی‌دارد: «بررسی و ممیزی …

⚡ /security-threat-model SKILL.md
OpenAI CodexCline
۸۹/۱۰۰ ★ ۲۸,۹۱۰
یادگیری ماشین
✦ Pro

LiteRT on Google Tensor: compile, benchmark, package for apps

این مهارت با نام «LiteRT on Google Tensor: compile, benchmark, package for apps» تجربهٔ یک کاربلد در یادگیری ماشین را ک…

⚡ /litert-google-tensor SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۲۴,۵۵۳
یادگیری ماشین
✦ Pro

GKE AI/ML Inference

اگر روی یادگیری ماشین کار می‌کنید، «GKE AI/ML Inference» بخشی از کار را از دوش شما برمی‌دارد: «دواپس، داکر و استقرار (D…

⚡ /gke-inference SKILL.md
MCP
۹۶/۱۰۰ ★ ۲۴,۵۵۰
یادگیری ماشین
✦ Pro

Data Manager API Troubleshooting

«Data Manager API Troubleshooting» یک مهارت آماده در حوزهٔ یادگیری ماشین است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «عیب‌…

⚡ /data-manager-api-troubleshooting SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۲۴,۵۴۶
یادگیری ماشین
✦ Pro

Gemini API in Gemini platform

برای کارهای یادگیری ماشین، «Gemini API in Gemini platform» یک راهنمای کوتاه و روشن است: مسیر «هماهنگی عامل‌ها و ابزارها…

⚡ /gemini-api SKILL.md
GeminiMCP
۹۶/۱۰۰ ★ ۲۴,۵۴۸