← スキル一覧に戻る

cv-strategy
by NaoyaTakashima
⭐ 0🍴 0📅 2026年1月10日
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
- Same folds for ALL models - Required for proper stacking
- No data leakage - Target encoding within fold only
- Group awareness - Same source → same fold
- Reproducibility - Always set random_state
Current Competition
- Competition: [Competition Name]
- Metric: [Evaluation Metric]
- Target:
targetcolumn - 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
| Model | CV Score | LB Score | Notes |
|---|---|---|---|
| XGBoost v1 | 0.8523 | 0.8501 | Baseline |
| LightGBM v1 | 0.8545 | 0.8520 | + target encoding |
| Ensemble v1 | 0.8612 | 0.8590 | XGB + 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
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓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
レビュー
💬
レビュー機能は近日公開予定です