Skip to content

"Vibe-Trading: Your Personal Trading Agent"

style(quantlib): fix top-level blank lines around group_purged_kfold_splits

santhrealc27f980df611
diff --git a/agent/src/quantlib/crossvalidation.py b/agent/src/quantlib/crossvalidation.py
index 0aa6e09fe..be8d41217 100644
--- a/agent/src/quantlib/crossvalidation.py
+++ b/agent/src/quantlib/crossvalidation.py
@@ -270,7 +270,6 @@ def purged_kfold_splits(
)
-
def group_purged_kfold_splits(
groups: Sequence[object] | pd.Series | np.ndarray,
n_folds: int = 5,
@@ -356,6 +355,7 @@ def group_purged_kfold_splits(
test_bounds=(int(test_rows.min()), int(test_rows.max())),
)
+
def purged_walk_forward_splits(
n_samples: int,
label_end_times: pd.Series | Sequence[int] | np.ndarray | None = None,