🎉 Smithery is now a part of Arcade.dev! Read more in our announcement here
將 Purged CV 整合到 ML 訓練流程的標準模式
當在金融時間序列上訓練 ML 模型時,必須使用 Purged CV 而非標準 K-Fold,以防止數據洩露。
⚠️ 禁止 在金融序列上使用 sklearn.model_selection.KFold。 標準 K-Fold 會導致訓練集和測試集在時間上重疊,造成過擬合幻覺。
sklearn.model_selection.KFold
[!TIP] 已提取代碼至:quant-ml-purged-cv-integration_examples_1.py
purge_window
embargo_window
n_test_splits
CombinatorialPurgedKFold