Temporal train-test split for forecasting

断了今生、忘了曾经 提交于 2020-06-17 14:48:08

问题


I know this may be a basic question but I want to know if I am using the train, test split correctly.

Say I have data that ends at 2019, and I want to predict values in the next 5 years.

The graph I produced is provided below:

My training data starts from 1996-2014 and my test data starts from 2014-2019. The test data perfectly fits the training data. I then used this test data to make predictions from 2019-2024.

Is this the correct way to do it, or my predictions should also be from 2014-2019 just like the test data?


回答1:


The test/validation data is useful for you to evaluate the predictor to use. Once you have decided which model to use, you should train the model with the whole dataset 1996-2019 so that you do not lose possible valuable knowledge from 2014-2019. Take into account that when working with time-series, usually the newer part of the serie has more importance in your prediction than older values of the serie.



来源:https://stackoverflow.com/questions/62332528/temporal-train-test-split-for-forecasting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!