in Education by
In sklearn, GridSearchCV can take a pipeline as a parameter to find the best estimator through cross validation. However, the usual cross validation is like this: to cross validate a time series data, the training and testing data are often splitted like this: That is to say, the testing data should be always ahead of training data. My thought is: Write my own version class of k-fold and passing it to GridSearchCV so I can enjoy the convenience of pipeline. The problem is that it seems difficult to let GridSearchCV to use an specified indices of training and testing data. Write a new class GridSearchWalkForwardTest which is similar to GridSearchCV, I am studying the source code grid_search.py and find it is a little complicated. Any suggestion is welcome. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I think you could use a Time Series Split either instead of your own implementation or as a basis for implementing a CV method which is exactly as you describe it. After digging around a bit, it seems like someone added a max_train_size to the TimeSeriesSplit in this PR which seems like it does what you want.

Related questions

0 votes
    Two Fathers and Two Sons walk into a ice cream parlour. They each buy something for Rs. 50 but they only spent Rs. 150. How is that possible?...
asked Feb 11, 2021 in Education by JackTerrance
0 votes
    I am trying to fit some (numpy) data into python skLearn modules, but keep getting error messages. When ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    I'm trying to do the Udacity mini project and I've got the latest version of the SKLearn library ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    I'm trying to recover from a PCA done with scikit-learn, which features are selected as relevant. A classic example ... for your help. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I can't decipher however the sklearn.pipeline.Pipeline works precisely. Some explanation in this documentation. What ... estimator)]) Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Python - What is exactly sklearn.pipeline.Pipeline?...
asked Nov 20, 2020 in Education by Editorial Staff
0 votes
    There are different types of group level available in the actual data set, We would be required different ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    The problem is that I cannot make a script that makes the enemy rotate so that "up" is pointing against the ... something simple... Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    What is the difference between back-propagation and feed-forward neural networks? By googling and reading, I found ... feed-forward? Select the correct answer from above options...
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    I'm making a basic feedforward neural network to solve the XOR gate problem. Standard settings: input layer + hidden layer + ... outputData_samples : Array = Array() for i in 0.....
asked Jan 31, 2022 in Education by JackTerrance
0 votes
    router examine _____ of given data package and forward table to device best way to transfer data packets Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
0 votes
    What is the purpose of the method forward()? (a) Loads any random URL in the history list (b) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    An alternating voltage V = 150 sin(314)t is supplied to a device which offers a resistance of 20 Ω in forward ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
...