I want to perform k-fold cross-validation for the setting where I have a training dataset consisting of a sequential time series that is fully benign and a test dataset (also a sequential time series) which contains labeled anomalies.
I already took a look at this post, but as my data is sequential, the answer doesn't work out.
I am especially stuck with the factor that for K-fold cross-validation, you use (k-1)/k parts of your data for training and 1/k parts of your data for testing, however, we can not make that split now as we really want to train the classifier on the benign training data and validate on test data which contains anomalies, so we are not allowed to use data from the test data for training (which would make it an ordinary classification problem).
maybe usefull to point out, is that I want to use k-fold cross-validation specifically to determine the
decision threshold hyperparameters for LOF (LocalOutlierFactor)