شعار Validation Design

Validation Design

المجتمع
WalrusQuant
validation-design

Design chronological sports-model validation and a written evaluation charter. Use for walk-forward splits, grouped time folds, metric locking, tuning boundaries, and go/no-go rules.

Add to TypingMind

نظرة عامة

الناشرWalrusQuant
المستودعsports-analytic-skills
اسم المهارةvalidation-design
النجوم
53
التفريعات
4
الملفات المرفقة
5
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها WalrusQuant على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Validation Design في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/validation-design
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/WalrusQuant/sports-analytic-skills.git /tmp/sports-analytic-skills
mkdir -p .claude/skills
cp -r /tmp/sports-analytic-skills/skills/validation-design .claude/skills/validation-design
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Validation Design في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Validation Design تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Validation Design بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Validation Design

Outcome

Produce a written evaluation charter and fold table that simulate the real prediction process. Sports data change through time—rosters, rules, tactics, opponents, schedules, and collection systems—so random row splits are rarely an honest default.

Read the split patterns while choosing fold geometry, the metric-lock guide before freezing metrics, and the anti-patterns during the final design review.

When to Use This Skill

Use when:

  • locking folds, metrics, baselines, and go/no-go rules before fitting;
  • replacing random K-fold with season or rolling-origin walk-forward;
  • defining embargo/grouping for team-game panels or repeated events;
  • the user asks how to validate a sports model honestly.

Do not use this skill as a substitute for:

  • leakage review of the feature matrix → leakage-audit;
  • fitting candidates after the charter is locked → baseline-models / predictive-modeling;
  • probability reliability diagnostics → calibration-check.
NeedGo instead
Feature legalityfeature-rules
Leakage verdictleakage-audit
Baseline ladderbaseline-models

Charter: lock before fitting

Record:

  • question, target, row grain, prediction decision time T, and eligible population;
  • chronological split unit and unambiguous ordering;
  • grouping for paired perspectives, repeated events, entities, seasons, or series;
  • minimum training history; expanding or sliding window and why;
  • gap/embargo tied to label or source finalization;
  • primary metric, secondary diagnostics, baselines, and practical success rule;
  • tuning boundary, early-stopping data, and final untouched holdout;
  • leakage checks, fold reporting, failure conditions, and allowed reruns.

If the charter changes after results, create a new evaluation version and label the prior result exploratory.

Default protocol

  1. Order observations by the time information becomes usable, not file order.
  2. Keep training strictly before testing, including publication delay and embargo.
  3. Choose one primary metric and baselines before fitting candidates.
  4. Use season/competition walk-forward when blocks have enough events.
  5. Use finer rolling-origin folds for frequent predictions when season blocks are too coarse.
  6. Fit every transform and tune every hyperparameter using past training data only.
  7. Score each outer test fold once for a fixed candidate.
  8. Report fold-level results, dispersion, failures, and baseline gaps—not only pooled means.
  9. Preserve a final holdout until feature families and candidates are frozen.

Split patterns

Season walk-forward

text
train through 2020 -> test 2021
train through 2021 -> test 2022
train through 2022 -> test 2023

This is a strong default for season-based leagues. Each test season must have enough eligible rows and prior seasons must satisfy the minimum-history rule.

Expanding versus sliding

WindowTraining dataPrefer when
Expandingall eligible history before teststable process; scarce data
Slidingmost recent K blocksdocumented regime drift/rule change

Select K without optimizing on the final holdout. Report how many rows/entities each window discards.

Rolling origin inside a season

text
train through week 6 -> test week 7
train through week 7 -> test week 8

Use for high-frequency labels or operational retraining. Features still require shift/as-of construction; a time split cannot repair a leaky matrix.

Embargo and availability gap

If labels settle or sources publish after an event, the last training event may not be usable immediately. Set the gap from the actual maximum availability delay, not an arbitrary number. Document whether postponed events and revisions extend the gap.

Grouping and panels

A team-game panel commonly has two rows per contest. Keep related perspectives in the same fold and avoid presenting doubled team-row accuracy as independent game-pick accuracy. Player-event rows may share lineup, game, or series effects; choose grouping based on the claim. Entity grouping must not accidentally place future rows into training when chronology is primary.

Nested tuning

text
Outer test block S
  Inner chronological folds inside blocks < S choose configuration
  Refit chosen configuration on all eligible data < S
  Score S once

Early stopping is tuning. It needs an inner training-period validation slice, not the outer test fold.

Metric lock

TaskPrimary candidateSecondary diagnostics
Win probabilitylog-lossBrier, calibration/ECE, accuracy
Margin/valueMAERMSE, bias, residual slices
Counts/ratesdeviance or MAErate calibration, zero behavior
Rankingfuture-period Spearmanpairwise accuracy, stability

Accuracy alone ignores probability quality. RMSE weights large misses more than MAE. Pick based on decision loss and target semantics, then specify direction, aggregation, weighting, missing predictions, and tie behavior.

Every candidate needs naive and domain-relevant baselines under identical rows and folds: constant training rate/mean, home indicator, last-value/rating, or another simple legal comparator.

Fold construction diagnostics

python
for fold in folds:
    train = df.loc[fold.train]
    test = df.loc[fold.test]
    assert train["event_time"].max() < test["event_time"].min()
    assert set(train["game_id"]).isdisjoint(set(test["game_id"]))

For each fold record train/test period, row count, event count, entity count, target base rate, excluded rows, availability gap, and required-column nulls. Inspect whether one shortened season, expansion era, postseason, or source change dominates results.

Standalone helpers

Print expanding walk-forward fold sizes from user-owned CSV, Parquet, JSON, JSONL, or NDJSON. The helper requires pandas, validates every named column, sorts distinct split values, and accepts any ordered season/date/group column.

bash
python /path/to/validation-design/scripts/print_folds.py \
  --input modeling_table.csv --split-col season \
  --required-cols won,is_home,rating_diff --min-train-groups 2

python /path/to/validation-design/scripts/write_charter.py \
  --out data/validation_charter.md

--min-train-groups default is 2. That means the first N groups are training-only history and never appear as a test fold. Example with seasons 2022, 2023, 2024:

  • default 2 → one test fold: 2024 (train 2022+2023)
  • 1 → test folds: 2023 and 2024

The helper prints the planned test folds on stderr before the CSV table. Match this setting when calling baseline-models / predictive-modeling helpers so evaluation rows stay identical.

The helper exposes row counts for expanding group folds; it does not verify T, dependency grouping, embargo, transform fitting, or tuning isolation. Verify those manually before calling the design valid. Supported ordering values are finite numbers, ISO dates/timestamps, and common consecutive season ranges such as 2022-23, 2022/23, or 2022-2023. Other labels—including stages whose lexical order is not chronology—require an explicit numeric ordinal/date field. The output is CSV with one row per test group.

Anti-patterns

Anti-patternWhy it failsRepair
random K-fold on eventsfuture structure enters trainingforward-only folds
full-data scaler/imputertest distribution leaksfold-local pipeline
early stopping on outer testtest becomes tuning datainner validation slice
repeated final-holdout checksadaptive overfittingfreeze and score once
dropping an ugly foldselection biasreport it; explain regime
reporting pooled mean onlyinstability is hiddenper-fold table + dispersion
no baselinemetric lacks contextscore legal baselines identically
different rows per candidateunfair comparisoncommon eligible sample/disclose
team rows called game accuracypaired rows double-counthome-only or game aggregation

Reporting table and decision

text
fold | train_period | test_period | train_n | test_n | baseline_primary |
candidate_primary | gap | secondary_metrics | exclusions | failures

Report mean and spread across folds, but preserve each fold. Weighting folds by rows answers a different question than equal-fold averaging; declare which is primary. Include calibration and relevant regime/entity slices when claims rely on them. The success rule should combine the locked primary metric, baseline gap, meaningful fold consistency, and non-negotiable leakage/calibration limits.

Charter template

text
Validation charter
Target / grain / decision time T / eligible population:
Split unit and ordering:
Grouping rule:
Minimum training history:
Window: expanding | sliding(K=)
Gap/embargo and availability rationale:
Primary metric definition:
Secondary diagnostics:
Baselines:
Inner tuning and early stopping:
Final untouched holdout:
Common evaluation rows:
Success / failure rule:
Required leakage checks:
Per-fold reporting and slice requirements:
Allowed reruns / versioning:

Worked example and integrity rules

For team-game win probability: set T to kickoff, group both perspectives by game, walk forward by season with two prior seasons, fit preprocessing and tune inside each outer training set, use log-loss as primary with Brier/calibration secondary, compare constant-rate and home-indicator baselines, and report every season. Use one perspective or game aggregation for game-level claims.

  1. No row, dependency group, transform fit, or tuning signal crosses future to past.
  2. Lock metrics and success before candidates; publish ugly folds.
  3. Keep the final holdout untouched until candidates and features are frozen.
  4. Use references/split_patterns.md for designs, references/metrics_lock.md for metrics, and references/anti_patterns.md for review.
  5. Pair with feature-rules and leakage-audit; clean folds cannot repair unsafe features.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Validation Design؟

Design chronological sports-model validation and a written evaluation charter. Use for walk-forward splits, grouped time folds, metric locking, tuning boundaries, and go/no-go rules.

لماذا تستخدم Validation Design على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Validation Design عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Validation Design في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/validation-design. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Validation Design؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Validation Design؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Validation Design معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Validation Design مجانية؟

نشرها WalrusQuant على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇