TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Python
Merge branch 'master' into rajat_dev
Rajat Sen5460b1e38f30
diff --cc experiments/long_horizon_benchmarks/run_eval.pyindex bf25952,53185b1..b715257--- a/experiments/long_horizon_benchmarks/run_eval.py+++ b/experiments/long_horizon_benchmarks/run_eval.py@@@ -26,28 -28,38 +26,29 @@@ from timesfm import data_loadeimport torchimport tqdm-FLAGS = flags.FLAGS-_BATCH_SIZE = flags.DEFINE_integer(- "batch_size", 64, "Batch size for the randomly sampled batch"-)+_BATCH_SIZE = flags.DEFINE_integer("batch_size", 64,+ "Batch size for the randomly sampled batch")_DATASET = flags.DEFINE_string("dataset", "etth1", "The name of the dataset.")-_MODEL_PATH = flags.DEFINE_string(- "model_path", "./timesfm_q10_20240501", "Path to model."-)-_DATETIME_COL = flags.DEFINE_string(- "datetime_col", "date", "Column having datetime."-)-_NUM_COV_COLS = flags.DEFINE_list(- "num_cov_cols", None, "Column having numerical features."-)-_CAT_COV_COLS = flags.DEFINE_list(- "cat_cov_cols", None, "Column having categorical features."-)+++_MODEL_PATH = flags.DEFINE_string("model_path", "./timesfm_q10_20240501",+ "The name of the dataset.")+_DATETIME_COL = flags.DEFINE_string("datetime_col", "date",+ "Column having datetime.")+_NUM_COV_COLS = flags.DEFINE_list("num_cov_cols", None,+ "Column having numerical features.")+_CAT_COV_COLS = flags.DEFINE_list("cat_cov_cols", None,+ "Column having categorical features.")_TS_COLS = flags.DEFINE_list("ts_cols", None, "Columns of time-series features")-_NORMALIZE = flags.DEFINE_bool(- "normalize", True, "normalize data for eval or not"-)-_CONTEXT_LEN = flags.DEFINE_integer(- "context_len", 512, "Length of the context window"-)+_NORMALIZE = flags.DEFINE_bool("normalize", True,+ "normalize data for eval or not")+_CONTEXT_LEN = flags.DEFINE_integer("context_len", 512,+ "Length of the context window")_PRED_LEN = flags.DEFINE_integer("pred_len", 96, "prediction length.")_BACKEND = flags.DEFINE_string("backend", "gpu", "backend to use")-_RESULTS_DIR = flags.DEFINE_string(- "results_dir", "./results/long_horizon", "results directory"-)-+_RESULTS_DIR = flags.DEFINE_string("results_dir", "./results/long_horizon",+ "results directory")DATA_DICT = {"ettm2": {