Core components of the TSCV package
masterThe tscv package provides tools to introduce gaps in both single train-test splits and multi-fold cross-validation. It consists of three main classes and one utility function:
Cross-Validation Classes
These classes can be passed directly to Scikit-Learn functions like cross_validate, cross_val_score, or cross_val_predict via the cv argument:
GapLeavePOutGapKFoldGapRollForward
Utility Function
gap_train_test_split: A function designed to complement Scikit-Learn'strain_test_splitby allowing the specification of a gap between the training and testing sets.