Back to list
NaoyaTakashima

cv-strategy

by NaoyaTakashima

0🍴 0📅 Jan 10, 2026

SKILL.md


name: cv-strategy description: Cross-validation configuration and fold management for this competition allowed-tools: Read, Grep, Glob

CV Strategy

Fold Configuration

N_FOLDS = 5
SEED = 42

# Tabular
from sklearn.model_selection import StratifiedKFold
skf = StratifiedKFold(n_splits=N_FOLDS, shuffle=True, random_state=SEED)

# Image with groups
from sklearn.model_selection import StratifiedGroupKFold
sgkf = StratifiedGroupKFold(n_splits=N_FOLDS, shuffle=True, random_state=SEED)

Golden Rules

  1. Same folds for ALL models - Required for proper stacking
  2. No data leakage - Target encoding within fold only
  3. Group awareness - Same source → same fold
  4. Reproducibility - Always set random_state

Current Competition

  • Competition: [Competition Name]
  • Metric: [Evaluation Metric]
  • Target: target column
  • Groups: [Group column if applicable]

Fold Splits (Saved)

models/folds.csv
- fold_0: train=[...], val=[...]
- fold_1: train=[...], val=[...]
...

OOF Predictions

models/oof/
├── xgb_v1_oof.npy
├── lgb_v1_oof.npy
├── catboost_v1_oof.npy
└── efficientnet_b3_oof.npy

Best CV Scores

ModelCV ScoreLB ScoreNotes
XGBoost v10.85230.8501Baseline
LightGBM v10.85450.8520+ target encoding
Ensemble v10.86120.8590XGB + LGB + CatBoost

Leakage Checklist

  • Target encoding uses train fold only
  • Time-based features respect temporal order
  • Group-based splits for related samples
  • No test data in feature engineering

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon