Skip to content

LSY-Cython/TimeRFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TimeRFT: Stimulating Generalizable Time Series Forecasting for TSFMs via Reinforcement Finetuning

TimeRFT is one of the first poineering work that enhances the forecasting accuracy and generalization of TSFM finetuning by time series reinforcement learning. We acknowledge that our finetuning experiments are built upon the pretrained MOIRAI-MoE model from uni2ts.

Quickstart

  1. Data Preparation

You can download the real-world time series datasets from fev-bench. Then transform the obtained Huggingface dataset into the suitable train/val/test form by python data_converter.py

  1. Experiment Configuration

All RFT-based or SFT-based TSFM adaptation experiments across various forecasting tasks (i.e. univariate, multivariate and covariate-informed forecasting) and training data regimes (e.g. 20% few-shot and 100% full-shot) can be conducted by curating the .yaml file under the folder configs/.

  1. Training and Evaluation

For univariate and multivariate forecasting tasks, you can implement TimeRFT by python finetune.py and python test.py, with modifying "cfg_path".

For covariate-informed forecasting tasks, you can implement TimeRFT by python finetune_cov.py and python test_cov.py, with modifying "cfg_path" and "target_dim_pred".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages