TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Python
feat(timesfm3): add benchmarks suite and move notebooks to timesfm3
Ayush Jain7d400b15dd95
diff --git a/.gitignore b/.gitignoreindex 00dc636..c079d56 100644--- a/.gitignore+++ b/.gitignore@@ -1,11 +1,29 @@+# Python & Virtual Environments.venv/dist/__pycache__/*.egg-info/+.pytest_cache/++# Model Checkpoints & Wandbcheckpoints/wandb/+*.safetensors+*.pth+*.pt++# Datasets & Heavy Benchmark Cachesdatasets/results/+TIME/+fev/+gift-eval/+TimesFM-3_multivariate/+time_benchmark_leaderboard.csv+*.html++# Logs & Temporary filesuv.lockdevelopment_setup.mddebug.log+*.logdiff --git a/timesfm3/benchmarks/README.md b/timesfm3/benchmarks/README.mdnew file mode 100644index 0000000..dd4bd3f--- /dev/null+++ b/timesfm3/benchmarks/README.md@@ -0,0 +1,7 @@+# TimesFM 3.0 Benchmarks++Evaluation notebooks, runners, and results for TimesFM 3.0:++- **[fev_bench/](fev_bench/)**: AutoGluon FEV-Bench (100 tasks)+- **[time_bench/](time_bench/)**: ICML TIME Benchmark (98 tasks)+- **[gift_eval/](gift_eval/)**: Salesforce GIFT-Evaldiff --git a/timesfm3/benchmarks/fev_bench/README.md b/timesfm3/benchmarks/fev_bench/README.mdnew file mode 100644index 0000000..5d1a7cf--- /dev/null+++ b/timesfm3/benchmarks/fev_bench/README.md@@ -0,0 +1,10 @@+# AutoGluon FEV-Bench++Evaluates TimesFM 3.0 on AutoGluon's 100-task FEV benchmark suite.++## Usage++```bash+pip install -e . autogluon.timeseries+python run_fev_bench.py+```diff --git a/timesfm3/benchmarks/fev_bench/fev_bench_results.csv b/timesfm3/benchmarks/fev_bench/fev_bench_results.csvnew file mode 100644index 0000000..202f394--- /dev/null+++ b/timesfm3/benchmarks/fev_bench/fev_bench_results.csv@@ -0,0 +1,101 @@+model_name,dataset_path,dataset_config,horizon,num_windows,initial_cutoff,window_step_size,min_context_length,max_context_length,seasonality,eval_metric,extra_metrics,quantile_levels,id_column,timestamp_column,target,generate_univariate_targets_from,known_dynamic_columns,past_dynamic_columns,static_columns,task_name,test_error,training_time_s,inference_time_s,num_forecasts,dataset_fingerprint,trained_on_this_dataset,fev_version,SQL,MASE,WAPE,WQL,model_class,model_kwargs,framework_version,fev_commit+TimesFM-3,autogluon/fev_datasets,proenfo_gfc12,168,10,-1680,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,['airtemperature'],[],[],proenfo_gfc12,0.5567789075146656,0.0,23.894550656026695,110,542e70fafa6c1141,False,0.9.0,0.5567789075146656,0.7094601646663061,0.05858625076455032,0.045780100725179455,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,proenfo_gfc14,168,20,-3360,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,['airtemperature'],[],[],proenfo_gfc14,0.26914406211853137,0.0,19.9738950470055,20,b496a2fe259b9b2e,False,0.9.0,0.26914406211853137,0.33952502874747703,0.016619050032379536,0.013172402327904707,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,proenfo_gfc17,168,20,-3360,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,['airtemperature'],[],[],proenfo_gfc17,0.40699200039436645,0.0,38.59719363198383,160,52bd28b0bd086271,False,0.9.0,0.40699200039436645,0.5163242123989896,0.03331686943702022,0.026201698025571412,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,rohlik_sales_1D,14,1,2023-12-15T00:00:00,14,14,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,sales,,"['holiday', 'school_holidays', 'sell_price_main', 'shops_closed', 'total_orders', 'type_0_discount', 'type_1_discount', 'type_2_discount', 'type_3_discount', 'type_4_discount', 'type_5_discount', 'type_6_discount', 'winter_school_holidays']",['availability'],"['L1_category_name_en', 'L2_category_name_en', 'L3_category_name_en', 'L4_category_name_en', 'name', 'product_unique_id', 'warehouse']",rohlik_sales_1D,0.905101302255332,0.0,316.79635121600586,4116,8fbcde7781725e42,False,0.9.0,0.905101302255332,1.1266564691012515,0.28327412459461565,0.22631863042910128,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,rohlik_orders_1D,61,5,2023-05-01T00:00:00,61,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,orders,,"['holiday', 'school_holidays', 'shops_closed', 'winter_school_holidays']","['blackout', 'frankfurt_shutdown', 'mini_shutdown', 'mov_change', 'precipitation', 'shutdown', 'snow', 'user_activity_1', 'user_activity_2']",[],rohlik_orders_1D,0.9096350465705763,0.0,2.789015729969833,35,e870b9bb33c73005,False,0.9.0,0.9096350465705763,1.1558164316057475,0.05454191130500434,0.0428078055706984,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,rohlik_sales_1W,8,1,2023-12-15T00:00:00,8,8,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,sales,,"['holiday', 'school_holidays', 'sell_price_main', 'shops_closed', 'total_orders', 'type_0_discount', 'type_1_discount', 'type_2_discount', 'type_3_discount', 'type_4_discount', 'type_5_discount', 'type_6_discount', 'winter_school_holidays']",['availability'],"['L1_category_name_en', 'L2_category_name_en', 'L3_category_name_en', 'L4_category_name_en', 'name', 'product_unique_id', 'warehouse']",rohlik_sales_1W,1.215477766480507,0.0,115.9934112179908,3942,09ccc385e4401736,False,0.9.0,1.215477766480507,1.4896327644141867,0.22414301775570122,0.18074614994240074,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,rohlik_orders_1W,8,5,2023-05-01T00:00:00,8,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,orders,,"['holiday', 'school_holidays', 'shops_closed', 'winter_school_holidays']","['blackout', 'frankfurt_shutdown', 'mini_shutdown', 'mov_change', 'precipitation', 'shutdown', 'snow', 'user_activity_1', 'user_activity_2']",[],rohlik_orders_1W,1.2535505681047805,0.0,1.3131932770193089,35,91789fb8a7648db1,False,0.9.0,1.2535505681047805,1.5316283614391986,0.049932275427770824,0.040888685139109815,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,entsoe_15T,96,20,-1920,96,1,,96,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['radiation_diffuse_horizontal', 'radiation_direct_horizontal', 'temperature']",[],[],entsoe_15T,0.4962995619795615,0.0,45.361705802963115,120,8ec35ddbd7a93b8f,False,0.9.0,0.4962995619795615,0.6272567330955798,0.04729582926779462,0.037454351915922536,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,entsoe_30T,96,20,-1920,96,1,,48,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['radiation_diffuse_horizontal', 'radiation_direct_horizontal', 'temperature']",[],[],entsoe_30T,0.5349602709456166,0.0,45.14294892695034,120,765a50c9f54521d7,False,0.9.0,0.5349602709456166,0.6501347045926289,0.044469062341837506,0.03671876262290721,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,entsoe_1H,168,20,-3360,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['radiation_diffuse_horizontal', 'radiation_direct_horizontal', 'temperature']",[],[],entsoe_1H,0.31614686742222925,0.0,45.43608652200783,120,d518ab7c9784448f,False,0.9.0,0.31614686742222925,0.3967896972483514,0.021706856931992036,0.017097817490098623,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,epf_be,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['Generation forecast', 'System load forecast']",[],[],epf_be,0.48270842860063634,0.0,21.545851544942707,20,eb294d71559ce5d0,False,0.9.0,0.48270842860063634,0.6103234593515932,0.10843874687070036,0.08562867164293908,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,epf_de,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['Ampirion Load Forecast', 'PV+Wind Forecast']",[],[],epf_de,0.48258879292359735,0.0,21.541771340096602,20,e67522ac7896d3fb,False,0.9.0,0.48258879292359735,0.612968303602045,0.3824053067614369,0.29623691524520684,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,epf_fr,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['Generation forecast', 'System load forecast']",[],[],epf_fr,0.3317523076039749,0.0,21.501997435931116,20,9da29dbdf2bfbf52,False,0.9.0,0.3317523076039749,0.4165161063229227,0.0622170828981193,0.04988867839980623,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,epf_np,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['Grid load forecast', 'Wind power forecast']",[],[],epf_np,0.7157017206599133,0.0,21.40914621797856,20,aea7ca30cd3827d7,False,0.9.0,0.7157017206599133,0.9395162921473286,0.04259891447028093,0.0324799362557875,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,epf_pjm,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['System load forecast', 'Zonal COMED load foecast']",[],[],epf_pjm,0.4113325421437234,0.0,21.495060540968552,20,6bec68b398d803d3,False,0.9.0,0.4113325421437234,0.5183920140062022,0.0899115618745587,0.07135998698574665,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,rossmann_1D,48,10,-480,48,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,Sales,,"['DayOfWeek', 'Open', 'Promo', 'SchoolHoliday', 'StateHoliday']",['Customers'],"['Assortment', 'CompetitionDistance', 'CompetitionOpenSinceMonth', 'CompetitionOpenSinceYear', 'Promo2', 'Promo2SinceWeek', 'Promo2SinceYear', 'PromoInterval', 'Store', 'StoreType']",rossmann_1D,0.3391169798744079,0.0,267.51916959302616,11150,d6dc0ada1f1bf668,False,0.9.0,0.3391169798744079,0.42527718416346927,0.14436288411853648,0.11512324769255955,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,rossmann_1W,13,8,-104,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,Sales,,"['Open', 'Promo', 'SchoolHoliday', 'StateHoliday']",['Customers'],"['Assortment', 'CompetitionDistance', 'CompetitionOpenSinceMonth', 'CompetitionOpenSinceYear', 'Promo2', 'Promo2SinceWeek', 'Promo2SinceYear', 'PromoInterval', 'Store', 'StoreType']",rossmann_1W,0.2967838112903127,0.0,77.39475391904125,8920,3c3159ba2d77e11a,False,0.9.0,0.2967838112903127,0.3526853774800942,0.09191795802897776,0.07762945811638683,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,restaurant,28,8,-224,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],"['air_area_name', 'air_genre_name', 'latitude', 'longitude']",restaurant,0.7001066108808682,0.0,39.2339263909671,6502,7c97780975320d0e,False,0.9.0,0.7001066108808682,0.8823142940331615,0.3564822789151135,0.2802224918337458,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,hermes,52,1,-52,52,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,['external'],[],"['category', 'country']",hermes,0.5981372032951682,0.0,60.04904457900557,10000,895c48174114b4cc,False,0.9.0,0.5981372032951682,0.7600838167134337,0.0027983739952408718,0.002204674130673609,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,walmart,39,1,-39,39,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['CPI', 'Fuel_Price', 'IsHoliday', 'MarkDown1', 'MarkDown2', 'MarkDown3', 'MarkDown4', 'MarkDown5', 'Temperature', 'Unemployment']",[],"['Dept', 'Size', 'Store', 'Type']",walmart,0.6850262957639248,0.0,56.81533450100687,2936,fbc0a4aec358c239,False,0.9.0,0.6850262957639248,0.861239756934513,0.10191473305888171,0.0808920247113702,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,m5_1D,28,1,-28,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['event_Cultural', 'event_National', 'event_Religious', 'event_Sporting', 'sell_price', 'snap_CA', 'snap_TX', 'snap_WI']",[],"['cat_id', 'dept_id', 'item_id', 'state_id', 'store_id']",m5_1D,0.7077473387385875,0.0,2044.1533704689937,30490,61931f915110d213,False,0.9.0,0.7077473387385875,0.8685193844080794,0.6934508605294497,0.5450423775115465,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,m5_1W,13,1,-13,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['event_Cultural', 'event_National', 'event_Religious', 'event_Sporting', 'sell_price', 'snap_CA', 'snap_TX', 'snap_WI']",[],"['cat_id', 'dept_id', 'item_id', 'state_id', 'store_id']",m5_1W,0.8781768552947953,0.0,634.6926450630126,30490,a1474019d1af8dc7,False,0.9.0,0.8781768552947953,1.1150603164202577,0.4148076934875371,0.3262711504712344,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,m5_1M,12,1,-12,12,6,,12,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['event_Cultural', 'event_National', 'event_Religious', 'event_Sporting', 'sell_price', 'snap_CA', 'snap_TX', 'snap_WI']",[],"['cat_id', 'dept_id', 'item_id', 'state_id', 'store_id']",m5_1M,0.9617014228372059,0.0,398.60653511900455,29364,fa0ca693f47ba4c0,False,0.9.0,0.9617014228372059,1.1426631009805341,0.4173608026641919,0.33191315026061574,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,hierarchical_sales_1D,28,10,-280,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],hierarchical_sales_1D,0.5487394120839723,0.0,17.525919947074726,1180,3f45cd2f53525af8,False,0.9.0,0.5487394120839723,0.6873916095194924,0.6921687690993225,0.5575709501102303,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,hierarchical_sales_1W,13,10,-130,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],hierarchical_sales_1W,0.6151351162124609,0.0,6.093016016064212,1180,0624f029664fdc8f,False,0.9.0,0.6151351162124609,0.7503622127696442,0.4296581453112469,0.3653665527719577,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,favorita_stores_1D,28,10,-280,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,sales,,"['holiday', 'onpromotion']",['oil_price'],"['city', 'cluster', 'family', 'state', 'store_nbr', 'type']",favorita_stores_1D,0.9151254266814606,0.0,449.51201153200236,15790,bd2a166189be50d5,False,0.9.0,0.9151254266814606,1.1346882839340209,0.14122313247457105,0.11455134097563299,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,favorita_stores_1W,13,10,-130,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,sales,,['onpromotion'],['oil_price'],"['city', 'cluster', 'family', 'state', 'store_nbr', 'type']",favorita_stores_1W,2.152678014056253,0.0,109.38704904998303,15790,d4aa692f4e02bcac,False,0.9.0,2.152678014056253,2.519369940626717,0.11580678021158242,0.09495119197410404,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,favorita_stores_1M,12,2,-24,12,1,,12,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,sales,,['onpromotion'],['oil_price'],"['city', 'cluster', 'family', 'state', 'store_nbr', 'type']",favorita_stores_1M,1.8126803887236926,0.0,17.67665384200518,3158,a13ef3574dbb7183,False,0.9.0,1.8126803887236926,2.0996974446051317,0.13821701612583193,0.11568028803944322,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,favorita_transactions_1D,28,10,-280,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,transactions,,['holiday'],['oil_price'],"['city', 'cluster', 'state', 'store_nbr', 'type']",favorita_transactions_1D,0.803757191393579,0.0,12.696616826957325,510,c35918f99475ba8d,False,0.9.0,0.803757191393579,0.9508063478803761,0.06790899548457804,0.055909538885102326,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,favorita_transactions_1W,13,10,-130,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,transactions,,[],['oil_price'],"['city', 'cluster', 'state', 'store_nbr', 'type']",favorita_transactions_1W,1.2085568379398746,0.0,3.373012106952956,510,68569e4a49c6cb74,False,0.9.0,1.2085568379398746,1.4060267143042549,0.05563928669577598,0.047038704876708325,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,favorita_transactions_1M,12,2,-24,12,1,,12,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,transactions,,[],['oil_price'],"['city', 'cluster', 'state', 'store_nbr', 'type']",favorita_transactions_1M,1.0185171132959558,0.0,0.6345252209866885,102,32e9bb4c8b1f7a35,False,0.9.0,1.0185171132959558,1.3088621643565261,0.07512477109199016,0.06451067308145825,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,solar_with_weather_15T,96,20,-1920,96,1,,96,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['day_length', 'humidity', 'pressure', 'rain_1h', 'snow_1h', 'temp', 'wind_speed']","['clouds_all', 'global_horizontal_irradiance']",[],solar_with_weather_15T,0.6911170407618443,0.0,28.943787198135396,20,8034077afff54b4a,False,0.9.0,0.6911170407618443,0.8796512023355907,1.1247945999796276,0.9162009775864325,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,solar_with_weather_1H,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,"['day_length', 'humidity', 'pressure', 'rain_1h', 'snow_1h', 'temp', 'wind_speed']","['clouds_all', 'global_horizontal_irradiance']",[],solar_with_weather_1H,0.6845331064522041,0.0,28.523513952008216,20,cb3609c0ddf202a5,False,0.9.0,0.6845331064522041,0.8645977953125954,1.002663802219334,0.8461666627873731,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,solar_1D,28,10,-280,28,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],solar_1D,0.6037478564645873,0.0,8.600841300998582,1370,089efb76bc26fd0d,False,0.9.0,0.6037478564645873,0.77759340523658,0.24374727694046694,0.18851062315658598,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,solar_1W,13,1,-13,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],solar_1W,0.9427722194176504,0.0,0.8049084960075561,137,098c3ea83b3d6935,False,0.9.0,0.9427722194176504,1.2629073643236606,0.21322509930407785,0.1591593528479839,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,kdd_cup_2022_10T,288,10,-2880,288,1,,144,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,Patv,,[],"['Etmp', 'Itmp', 'Ndir', 'Pab1', 'Pab2', 'Pab3', 'Prtv', 'Wdir', 'Wspd']",[],kdd_cup_2022_10T,0.42932040066566285,0.0,852.3485941330146,1340,23fcde52580d97ec,False,0.9.0,0.42932040066566285,0.5272094531590245,1.4857354870652744,1.3262501134856253,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,kdd_cup_2022_30T,96,10,-960,96,1,,48,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,Patv,,[],"['Etmp', 'Itmp', 'Ndir', 'Pab1', 'Pab2', 'Pab3', 'Prtv', 'Wdir', 'Wspd']",[],kdd_cup_2022_30T,0.4269020048875146,0.0,610.0471545610344,1340,5e259fcc1265b5e6,False,0.9.0,0.4269020048875146,0.5266950983647634,1.6008820065742415,1.3824896278150998,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,kdd_cup_2022_1D,14,10,-140,14,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,Patv,,[],"['Etmp', 'Itmp', 'Ndir', 'Pab1', 'Pab2', 'Pab3', 'Prtv', 'Wdir', 'Wspd']",[],kdd_cup_2022_1D,0.7001636633697494,0.0,20.47890279692365,1340,77848f0da8cb1683,False,0.9.0,0.7001636633697494,0.8971326115142029,0.7139363007583739,0.5567758978359908,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uci_air_quality_1H,168,20,-3360,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['C6H6(GT)', 'CO(GT)', 'NO2(GT)', 'NOx(GT)']",,"['AH', 'RH', 'T']",[],[],uci_air_quality_1H,0.7906874075624073,0.0,14.142413551046047,80,e5ea3dd679288107,False,0.9.0,0.7906874075624073,1.019178682349445,0.321610278440696,0.24988847285217872,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uci_air_quality_1D,28,11,-308,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['C6H6(GT)', 'CO(GT)', 'NO2(GT)', 'NOx(GT)']",,"['AH', 'RH', 'T']",[],[],uci_air_quality_1D,1.0905943642662572,0.0,2.395071365055628,44,43fb5d5ff04d71a5,False,0.9.0,1.0905943642662572,1.36822942378585,0.2769389353295101,0.21904052780683142,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,LOOP_SEATTLE_5T,288,10,-2880,288,1,,288,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],LOOP_SEATTLE_5T,0.5514913651106977,0.0,381.25736238699756,3230,51aeb676cd5dd3ed,False,0.9.0,0.5514913651106977,0.6952490626509273,0.0746668739367308,0.05914186604706848,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,LOOP_SEATTLE_1D,28,10,-280,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],LOOP_SEATTLE_1D,0.7586996718524642,0.0,18.146880795015022,3230,d7400c304196efe7,False,0.9.0,0.7586996718524642,0.9312832318522635,0.035330927496687654,0.02872311402021648,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,LOOP_SEATTLE_1H,168,10,-1680,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],LOOP_SEATTLE_1H,0.5618832631776781,0.0,190.32027593895327,3230,84eb04d3cee92c46,False,0.9.0,0.5618832631776781,0.6936984677138734,0.05913720565442019,0.04783829535558574,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,M_DENSE_1D,28,10,-280,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],M_DENSE_1D,0.6523140960577665,0.0,2.9458827580383513,300,f50ae452affb3e35,False,0.9.0,0.6523140960577665,0.7859314897622236,0.08638536399090922,0.07244201238424813,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,M_DENSE_1H,168,10,-1680,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],M_DENSE_1H,0.5078659107349736,0.0,34.377196751971496,300,1f0ec0f772f352c9,False,0.9.0,0.5078659107349736,0.6236332471871477,0.12797042308702927,0.10357007962331888,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,SZ_TAXI_15T,96,10,-960,96,1,,96,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],SZ_TAXI_15T,0.3923534972690371,0.0,32.12823099497473,1560,e47b557421820cb4,False,0.9.0,0.3923534972690371,0.4993069753857816,0.23892686793613235,0.1874775574670878,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,SZ_TAXI_1H,168,2,-336,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],SZ_TAXI_1H,0.4009352784980471,0.0,2.471272433991544,312,6eb12323a74867f1,False,0.9.0,0.4009352784980471,0.48955491580870714,0.1646370202624492,0.13516199276019464,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,redset_5T,288,10,-2880,288,1,,288,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],['subset'],redset_5T,0.6468969141328669,0.0,133.98430884702248,1180,6bc47cbc4c58f1f9,False,0.9.0,0.6468969141328669,0.7682841387259947,0.3018190801937509,0.24899216250818404,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,redset_15T,96,10,-960,96,1,,96,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],['subset'],redset_15T,0.703540596141381,0.0,75.74339000397595,1260,588a03228e4f4adf,False,0.9.0,0.703540596141381,0.8334944066097705,0.26413186838629005,0.2183833254506963,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,redset_1H,24,10,-240,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],['subset'],redset_1H,1.3329761323748106,0.0,25.947405493963743,1380,e6a3754f8100b607,False,0.9.0,1.3329761323748106,1.4638366852136708,0.21865363874644794,0.18322327000168484,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,hospital_admissions_1D,28,20,-560,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],hospital_admissions_1D,0.555198921115305,0.0,5.772191590920556,160,9f7f3b017a07bdf3,False,0.9.0,0.555198921115305,0.7180431104068239,0.5326519244116432,0.41181605659338255,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,hospital_admissions_1W,13,16,-208,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],hospital_admissions_1W,0.5813791253914526,0.0,3.441620982979657,128,63f683b064bb1e1c,False,0.9.0,0.5813791253914526,0.7565832729911113,0.2129910298590793,0.16371480362258858,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ETT_1W,13,5,-65,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['HUFL', 'HULL', 'LUFL', 'LULL', 'MUFL', 'MULL', 'OT']",,[],[],[],ETT_1W,2.4006273822757036,0.0,1.0796452279610094,70,8f5e42f5f75bf725,False,0.9.0,2.4006273822757036,2.7941718567537626,0.5144633519481202,0.40799331517473253,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ETT_1D,28,20,-560,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['HUFL', 'HULL', 'LUFL', 'LULL', 'MUFL', 'MULL', 'OT']",,[],[],[],ETT_1D,1.1282151606106625,0.0,4.671513854991645,280,86228085e2fc3a6f,False,0.9.0,1.1282151606106625,1.3606384715686113,0.33021807396844005,0.26441442002451687,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ETT_1H,168,20,-3360,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['HUFL', 'HULL', 'LUFL', 'LULL', 'MUFL', 'MULL', 'OT']",,[],[],[],ETT_1H,0.8300859700899366,0.0,32.418121148017235,280,0eca8ff9060969cf,False,0.9.0,0.8300859700899366,1.0648078176565907,0.2319908214825225,0.1805280555208946,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ETT_15T,96,20,-1920,96,1,,96,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['HUFL', 'HULL', 'LUFL', 'LULL', 'MUFL', 'MULL', 'OT']",,[],[],[],ETT_15T,0.5433074462842196,0.0,33.04924135105102,280,e85b0246502e0a3b,False,0.9.0,0.5433074462842196,0.6967223499377394,0.11209329758389472,0.08728027122324258,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,hospital,12,4,-48,12,1,,12,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],hospital,0.6824867961109091,0.0,14.116561547009042,3068,77cfeec1caea80b0,False,0.9.0,0.6824867961109091,0.866897758880529,0.08995420581947865,0.07213135139542953,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,jena_weather_10T,144,20,-2880,144,1,,144,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_3', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],jena_weather_10T,0.33958078467696234,0.0,39.50812657098868,420,f282b4847b0fa42f,False,0.9.0,0.33958078467696234,0.41827155206303746,0.2412399283604696,0.2074284678513192,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,jena_weather_1D,28,11,-308,28,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_3', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],jena_weather_1D,1.12681600297482,0.0,2.5907648160064127,231,1a27b4c17c028faa,False,0.9.0,1.12681600297482,1.4278685876185475,0.2750762217727335,0.22251264911498206,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,jena_weather_1H,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_3', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],jena_weather_1H,0.345835578237405,0.0,23.02323853294365,420,2f6aeba80fdc1cd6,False,0.9.0,0.345835578237405,0.4256470885419975,0.23773865750771708,0.2085923694916343,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,bizitobs_l2c_1H,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_2', 'target_3', 'target_4', 'target_5', 'target_6']",,[],[],[],bizitobs_l2c_1H,0.2871476429985234,0.0,6.908056302956538,140,5086a4a9f652e5eb,False,0.9.0,0.2871476429985234,0.36630028793170255,0.2971570439227129,0.23493716400539566,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,bizitobs_l2c_5T,288,20,-5760,288,1,,288,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_2', 'target_3', 'target_4', 'target_5', 'target_6']",,[],[],[],bizitobs_l2c_5T,0.301327036045649,0.0,25.886962140968535,140,b4503ff97e1503b2,False,0.9.0,0.301327036045649,0.37863791806714864,0.29654645646961264,0.25418551301006614,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,australian_tourism,8,2,-16,8,1,,4,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],australian_tourism,0.7906486553291587,0.0,1.0857704200025182,178,1e4085df5e783d27,False,0.9.0,0.7906486553291587,0.9759334080328321,0.0994888445942915,0.07925758437391947,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,world_tourism,5,2,-10,5,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],world_tourism,2.676663025726656,0.0,1.7738483810098842,356,75832161ec2a863b,False,0.9.0,2.676663025726656,3.123709787778118,0.06411952045285105,0.051877656392431415,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,world_co2_emissions,5,9,-45,5,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],world_co2_emissions,2.779922771962384,0.0,8.051135135028744,1719,a5e8be4e2bf79316,False,0.9.0,2.779922771962384,3.280976446040457,0.08335398808811696,0.07308985539454346,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,world_life_expectancy,5,10,-50,5,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],world_life_expectancy,1.1368229938120438,0.0,11.864174329995876,2370,d5fc26c08587c577,False,0.9.0,1.1368229938120438,1.372446063364293,0.011068333394937327,0.009180991516443084,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ercot_1H,168,20,-3360,168,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],ercot_1H,1.0001701257308853,0.0,32.4294629819924,160,0491dedcd52b378f,False,0.9.0,1.0001701257308853,1.2964930940110988,0.06605767026189584,0.050574724997050756,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ercot_1D,28,20,-560,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],ercot_1D,0.7795466383050111,0.0,14.577997881977353,160,6ecb9443fa279368,False,0.9.0,0.7795466383050111,0.9858990243340118,0.07324374990015792,0.057445607722977986,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ercot_1W,13,20,-260,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],ercot_1W,0.9105612611621734,0.0,5.198147941031493,160,cfdfcbedb2a06661,False,0.9.0,0.9105612611621734,1.1672176105822865,0.058310455445618734,0.04524103095504202,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ercot_1M,12,15,-180,12,1,,12,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],ercot_1M,0.7642092184408491,0.0,3.326185616024304,120,011c8f0da7adf3d3,False,0.9.0,0.7642092184408491,0.9771301123475244,0.04962672376046715,0.03857398105970076,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uk_covid_utla_1D,28,10,-280,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,new_cases,,[],[],[],uk_covid_utla_1D/new,3.5892216256682294,0.0,17.385552491992712,2140,0fbe9de480e6e714,False,0.9.0,3.5892216256682294,4.3370112539308465,0.44056859896656747,0.36525951007121915,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uk_covid_utla_1W,13,5,-65,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,cumulative_cases,,[],[],[],uk_covid_utla_1W/cumulative,15.334995284726073,0.0,6.122898818022804,1070,75f676e7203bb3c3,False,0.9.0,15.334995284726073,17.340780485028077,0.16840672900003914,0.14802997912509,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uk_covid_nation_1D,28,20,-560,28,1,,7,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['new_admissions', 'new_cases', 'new_deaths']",,[],"['hospital_cases', 'icu_ventilator_occupancy', 'new_vaccinated_1', 'new_vaccinated_2', 'new_vaccinated_3']",[],uk_covid_nation_1D/new,1.9971275886055868,0.0,5.221319853968453,240,219e616360979c01,False,0.9.0,1.9971275886055868,2.4006917172629563,0.3573702930308215,0.2872667699915157,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uk_covid_nation_1D,28,20,-560,28,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['cumulative_admissions', 'cumulative_cases', 'cumulative_deaths']",,[],"['cumulative_vaccinated_1', 'cumulative_vaccinated_2', 'cumulative_vaccinated_3', 'hospital_cases', 'icu_ventilator_occupancy']",[],uk_covid_nation_1D/cumulative,6.424636279315936,0.0,5.232386300951475,240,219e616360979c01,False,0.9.0,6.424636279315936,7.856384718580098,0.021557830146373462,0.017071593137275066,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uk_covid_nation_1W,8,4,-32,8,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['new_admissions', 'new_cases', 'new_deaths']",,[],"['hospital_cases', 'icu_ventilator_occupancy', 'new_vaccinated_1', 'new_vaccinated_2', 'new_vaccinated_3']",[],uk_covid_nation_1W/new,4.226238575228317,0.0,0.9700817700068001,48,0474128d4d22e604,False,0.9.0,4.226238575228317,5.035923927789792,0.6058795209223631,0.5017617347948389,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,uk_covid_nation_1W,8,4,-32,8,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['cumulative_admissions', 'cumulative_cases', 'cumulative_deaths']",,[],"['cumulative_vaccinated_1', 'cumulative_vaccinated_2', 'cumulative_vaccinated_3', 'hospital_cases', 'icu_ventilator_occupancy']",[],uk_covid_nation_1W/cumulative,3.8975261928491003,0.0,0.9547109310224187,48,0474128d4d22e604,False,0.9.0,3.8975261928491003,4.816740526465837,0.05033874387605057,0.03956922136584351,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,ecdc_ili,13,10,-130,13,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],ecdc_ili,2.1446232828001244,0.0,2.394062456995016,240,75635e1d250bcf4d,False,0.9.0,2.1446232828001244,2.615164939349109,0.3769655916955149,0.3212287340998438,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1062,288,20,-5760,288,1,,288,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_3', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1062,0.545073086971257,0.0,34.50214784295531,420,01d2a86c11c06978,False,0.9.0,0.545073086971257,0.6744198992396585,0.5671038662289672,0.4531764852243817,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1209,288,20,-5760,288,1,,288,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_52', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1209,0.6480147087547365,0.0,88.01925879804185,1060,6e00e283ab292953,False,0.9.0,0.6480147087547365,0.7619805644623077,0.2871072670621588,0.24317101317726322,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1225,60,20,-1200,60,1,,1440,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1225,0.18417059465519212,0.0,99.38309947293601,980,7c58ff0b5706b3a2,False,0.9.0,0.18417059465519212,0.2301430900012656,0.12108888815899779,0.09718516777310715,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1230,288,20,-5760,288,1,,288,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_3', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1230,1.154338603170769,0.0,36.40246884096996,460,a80d10969639f053,False,0.9.0,1.154338603170769,1.3308504002887582,0.2917740621065117,0.2452440785346197,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1282,60,20,-1200,60,1,,1440,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1282,0.3957325426509972,0.0,98.29333322789171,700,f160466a9db43940,False,0.9.0,0.3957325426509972,0.4818496403991621,0.33314679526602087,0.27112539449778356,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1487,288,20,-5760,288,1,,288,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_52', 'target_53', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1487,0.4058912400320077,0.0,88.40106583302259,1080,59b22b82ab30b004,False,0.9.0,0.4058912400320077,0.4950756406004076,0.1951027913371137,0.15981646101933328,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1631,96,20,-1920,96,1,,48,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1631,0.5753262618120247,0.0,63.209187372005545,800,5c6c2254592aca88,False,0.9.0,0.5753262618120247,0.719282038289408,0.3137391686503914,0.2503058037360793,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1676,96,20,-1920,96,1,,48,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_52', 'target_53', 'target_54', 'target_55', 'target_56', 'target_57', 'target_58', 'target_59', 'target_6', 'target_60', 'target_61', 'target_62', 'target_63', 'target_64', 'target_65', 'target_66', 'target_67', 'target_68', 'target_69', 'target_7', 'target_70', 'target_71', 'target_72', 'target_73', 'target_74', 'target_75', 'target_76', 'target_77', 'target_78', 'target_79', 'target_8', 'target_80', 'target_81', 'target_82', 'target_83', 'target_84', 'target_85', 'target_86', 'target_87', 'target_88', 'target_89', 'target_9', 'target_90', 'target_91', 'target_92', 'target_93', 'target_94', 'target_95', 'target_96', 'target_97', 'target_98', 'target_99']",,[],[],[],boomlet_1676,0.5543373290662764,0.0,129.10203291097423,2000,8fc1e0faac585fd5,False,0.9.0,0.5543373290662764,0.6908560000052855,0.3147755429098723,0.24715791265796555,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1855,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_1855,0.4509140804499353,0.0,37.62637686505332,1040,e42df5ebc5c69006,False,0.9.0,0.4509140804499353,0.5288811681827544,0.15802908752057104,0.13524572821436393,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_1975,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_52', 'target_53', 'target_54', 'target_55', 'target_56', 'target_57', 'target_58', 'target_59', 'target_6', 'target_60', 'target_61', 'target_62', 'target_63', 'target_64', 'target_65', 'target_66', 'target_67', 'target_68', 'target_69', 'target_7', 'target_70', 'target_71', 'target_72', 'target_73', 'target_74', 'target_8', 'target_9']",,[],[],[],boomlet_1975,0.1271451495260023,0.0,56.69226358196465,1500,7269b3f2687a7a38,False,0.9.0,0.1271451495260023,0.14797584262755198,0.08564761942507546,0.07381925901617221,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_2187,24,20,-480,24,1,,24,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_52', 'target_53', 'target_54', 'target_55', 'target_56', 'target_57', 'target_58', 'target_59', 'target_6', 'target_60', 'target_61', 'target_62', 'target_63', 'target_64', 'target_65', 'target_66', 'target_67', 'target_68', 'target_69', 'target_7', 'target_70', 'target_71', 'target_72', 'target_73', 'target_74', 'target_75', 'target_76', 'target_77', 'target_78', 'target_79', 'target_8', 'target_80', 'target_81', 'target_82', 'target_83', 'target_84', 'target_85', 'target_86', 'target_87', 'target_88', 'target_89', 'target_9', 'target_90', 'target_91', 'target_92', 'target_93', 'target_94', 'target_95', 'target_96', 'target_97', 'target_98', 'target_99']",,[],[],[],boomlet_2187,0.7140342992183448,0.0,77.45948359702015,2000,f89e4ce5d8bbcbe9,False,0.9.0,0.7140342992183448,0.8160031210612013,0.2679296230181853,0.23253238474725185,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_285,60,20,-1200,60,1,,1440,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_52', 'target_53', 'target_54', 'target_55', 'target_56', 'target_57', 'target_58', 'target_59', 'target_6', 'target_60', 'target_61', 'target_62', 'target_63', 'target_64', 'target_65', 'target_66', 'target_67', 'target_68', 'target_69', 'target_7', 'target_70', 'target_71', 'target_72', 'target_73', 'target_74', 'target_8', 'target_9']",,[],[],[],boomlet_285,0.29594668332309365,0.0,150.71655186195858,1500,3c3854b73442b2f1,False,0.9.0,0.29594668332309365,0.34555605378990784,0.16175435765536625,0.13770467536911196,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_619,60,20,-1200,60,1,,1440,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_619,0.3104948050268289,0.0,99.91496851094416,1040,231a8d1219323379,False,0.9.0,0.3104948050268289,0.40219739969263235,0.27829599353239426,0.21703285681678902,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_772,60,20,-1200,60,1,,1440,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_28', 'target_29', 'target_3', 'target_30', 'target_31', 'target_32', 'target_33', 'target_34', 'target_35', 'target_36', 'target_37', 'target_38', 'target_39', 'target_4', 'target_40', 'target_41', 'target_42', 'target_43', 'target_44', 'target_45', 'target_46', 'target_47', 'target_48', 'target_49', 'target_5', 'target_50', 'target_51', 'target_52', 'target_53', 'target_54', 'target_55', 'target_56', 'target_57', 'target_58', 'target_59', 'target_6', 'target_60', 'target_61', 'target_62', 'target_63', 'target_64', 'target_65', 'target_66', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_772,0.276785855605769,0.0,149.6249645310454,1340,d47beed43239a526,False,0.9.0,0.276785855605769,0.32377371932508076,0.15353182075366037,0.12970397201054534,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,boomlet_963,60,20,-1200,60,1,,1440,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['target_0', 'target_1', 'target_10', 'target_11', 'target_12', 'target_13', 'target_14', 'target_15', 'target_16', 'target_17', 'target_18', 'target_19', 'target_2', 'target_20', 'target_21', 'target_22', 'target_23', 'target_24', 'target_25', 'target_26', 'target_27', 'target_3', 'target_4', 'target_5', 'target_6', 'target_7', 'target_8', 'target_9']",,[],[],[],boomlet_963,0.6928251891763623,0.0,46.46935895396746,560,ba4c4446a6d5a9b8,False,0.9.0,0.6928251891763623,0.8054213848804469,0.3730030925087927,0.3087802625592574,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,fred_md_2025,12,20,-240,12,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['CPIAUCSL', 'FEDFUNDS', 'PAYEMS']",,[],"['M2REAL', 'NONBORRES', 'PPICMM', 'TOTRESNS']",[],fred_md_2025/cee,3.426803898734609,0.0,5.3739800589683,60,25e105fee7040a8a,False,0.9.0,3.426803898734609,4.114213320466752,0.07623215719007344,0.06343233673980853,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,fred_qd_2025,8,20,-160,8,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['CPIAUCSL', 'FEDFUNDS', 'PAYEMS']",,[],"['M2REAL', 'NONBORRES', 'PPICMM', 'TOTRESNS']",[],fred_qd_2025/cee,1.6793907544594038,0.0,4.710424827993847,60,678e0a3fa180fec6,False,0.9.0,1.6793907544594038,2.0140227327848974,0.14066305719543057,0.1149091501179147,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,fred_md_2025,12,20,-240,12,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['AAA', 'AWHMAN', 'BAA', 'BUSINVx', 'CPIAUCSL', 'CPIMEDSL', 'CUMFNS', 'DMANEMP', 'EXUSUKx', 'FEDFUNDS', 'GS1', 'GS10', 'GS5', 'HOUST', 'INDPRO', 'INVEST', 'IPBUSEQ', 'IPCONGD', 'IPDCONGD', 'IPDMAT', 'IPFINAL', 'IPMANSICS', 'IPMAT', 'IPNCONGD', 'IPNMAT', 'M2REAL', 'MANEMP', 'NDMANEMP', 'NONBORRES', 'PAYEMS', 'PERMIT', 'PPICMM', 'S&P 500', 'SRVPRD', 'TB3MS', 'TB6MS', 'TOTRESNS', 'UEMP15T26', 'UEMP27OV', 'UEMP5TO14', 'UEMPLT5', 'UEMPMEAN', 'UMCSENTx', 'UNRATE', 'USCONS', 'USFIRE', 'USGOOD', 'USGOVT', 'USTPU', 'USTRADE', 'VIXCLSx']",,[],[],[],fred_md_2025/macro,5.080041945595314,0.0,11.75487605505623,1020,25e105fee7040a8a,False,0.9.0,5.080041945595314,6.003273224511048,0.072091322442983,0.05901181572183437,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,fred_qd_2025,8,20,-160,8,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['AAA', 'AWHMAN', 'BAA', 'BUSINVx', 'CPIAUCSL', 'CPIMEDSL', 'CUMFNS', 'DMANEMP', 'EXUSUKx', 'FEDFUNDS', 'GS1', 'GS10', 'GS5', 'HOUST', 'INDPRO', 'INVEST', 'IPBUSEQ', 'IPCONGD', 'IPDCONGD', 'IPDMAT', 'IPFINAL', 'IPMANSICS', 'IPMAT', 'IPNCONGD', 'IPNMAT', 'M2REAL', 'MANEMP', 'NDMANEMP', 'NONBORRES', 'PAYEMS', 'PERMIT', 'PPICMM', 'S&P 500', 'SRVPRD', 'TB3MS', 'TB6MS', 'TOTRESNS', 'UEMP15T26', 'UEMP27OV', 'UEMP5TO14', 'UEMPLT5', 'UEMPMEAN', 'UMCSENTx', 'UNRATE', 'USCONS', 'USFIRE', 'USGOOD', 'USGOVT', 'USTPU', 'USTRADE', 'VIXCLSx']",,[],[],[],fred_qd_2025/macro,3.3282656424426724,0.0,10.789585965918377,1020,678e0a3fa180fec6,False,0.9.0,3.3282656424426724,3.972155615026211,0.09730409840576584,0.08003799893397014,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,us_consumption_1M,12,10,-120,12,1,,12,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],us_consumption_1M,1.4469223029244995,0.0,3.6675725509412587,310,d9a6d6331db3f539,False,0.9.0,1.4469223029244995,1.7259004665473419,0.023286757553836756,0.020302102725555472,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,us_consumption_1Q,8,10,-80,8,1,,4,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],us_consumption_1Q,1.7102747072880269,0.0,2.6597085559915286,310,c069377671e8dcc0,False,0.9.0,1.7102747072880269,2.137764597011561,0.02990221908678454,0.025057250787147538,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,us_consumption_1Y,5,10,-50,5,1,,1,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,target,,[],[],[],us_consumption_1Y,3.6858607730744195,0.0,2.4176548299728893,310,1681829993c397b6,False,0.9.0,3.6858607730744195,4.455266935641795,0.05730147125869388,0.04711661378563088,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,main+TimesFM-3,autogluon/fev_datasets,gvar,8,10,-80,8,1,,4,SQL,"['MASE', {'name': 'WAPE', 'epsilon': 1.0}, {'name': 'WQL', 'epsilon': 1.0}]","[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]",id,timestamp,"['Dp', 'ep', 'eq', 'lr', 'r', 'y']",,[],"['pmat', 'pmetal', 'poil']",[],gvar,0.5673247221989841,0.0,5.373649628949352,1980,76e95b6a695482a1,False,0.9.0,0.5673247221989841,0.6934148766205311,0.018373831450356287,0.014913527048166878,TimesFM-3,"{""device"": ""cuda"", ""max_context_length"": 15360, ""use_variate_attention"": true}",torch==2.9.1+cu129,maindiff --git a/timesfm3/benchmarks/fev_bench/fev_bench_timesfm3.ipynb b/timesfm3/benchmarks/fev_bench/fev_bench_timesfm3.ipynbnew file mode 100644index 0000000..16acd91--- /dev/null+++ b/timesfm3/benchmarks/fev_bench/fev_bench_timesfm3.ipynb@@ -0,0 +1,541 @@+{+ "cells": [+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "# TimesFM-3: Zero-Shot Evaluation on AutoGluon `fev-bench`\n",+ "\n",+ "This notebook evaluates **TimesFM-3** on the complete **AutoGluon `fev-bench`** benchmark suite (100 tasks across diverse domains, frequencies, and forecast horizons) with full multivariate targets, past-only covariates, and known past-future dynamic covariates.\n",+ "\n",+ "### Evaluation Configuration:\n",+ "- **Model Name**: `TimesFM-3`\n",+ "- **Architecture**: TimesFM-3 PyTorch with cross-variate attention (`use_variate_attention=True`)\n",+ "- **Variate Handling**: Full multivariate targets & dynamic covariates with automatic chunking delegated to `TimesFM3Evaluator`\n",+ "- **Batch Sizing**: Adaptive batch sizing scaled by token volume ($64 / (\\min(32, V) \\cdot L_{\\text{norm}})$) rounded to nearest power of 2\n",+ "- **Inference Enhancements**:\n",+ " - Monotonic quantile sorting (`sort_quantiles=True`)\n",+ " - Symmetric pos/neg input augmentation & averaging (`use_symmetric_averaging=True`)\n",+ " - Non-negativity constraint clamping (`make_positive=True`)\n",+ " - Missing-value imputation (`LastValueImputation`)\n",+ "- **Output Results**: `TimesFM-3_multivariate/fev_bench/fev_bench_results.csv`\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "import os\n",+ "import sys\n",+ "import math\n",+ "import json\n",+ "import warnings\n",+ "from pathlib import Path\n",+ "from typing import List, Optional, Tuple, Dict, Any\n",+ "\n",+ "import matplotlib.pyplot as plt\n",+ "import numpy as np\n",+ "import pandas as pd\n",+ "import torch\n",+ "import datasets\n",+ "\n",+ "# Suppress noisy warnings\n",+ "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",+ "warnings.filterwarnings(\"ignore\", category=RuntimeWarning)\n",+ "warnings.filterwarnings(\"ignore\", category=UserWarning)\n",+ "\n",+ "def find_repo_root():\n",+ " curr = Path.cwd().resolve()\n",+ " for p in [curr] + list(curr.parents):\n",+ " if (p / 'src' / 'timesfm3').exists() or (p / 'pyproject.toml').exists():\n",+ " return p\n",+ " return curr\n",+ "\n",+ "repo_root = find_repo_root()\n",+ "if str(repo_root / \"src\") not in sys.path:\n",+ " sys.path.insert(0, str(repo_root / \"src\"))\n",+ "if str(repo_root) not in sys.path:\n",+ " sys.path.insert(0, str(repo_root))\n",+ "\n",+ "\n",+ "import fev\n",+ "from timesfm3 import TimesFM3Evaluator, ModelConfig\n",+ "\n",+ "print(f\"PyTorch version: {torch.__version__}, CUDA Available: {torch.cuda.is_available()}\", flush=True)\n",+ "if torch.cuda.is_available():\n",+ " print(f\"Active GPU: {torch.cuda.get_device_name(0)}\", flush=True)\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "class MissingValueImputation:\n",+ " def __call__(self, values: np.ndarray) -> np.ndarray:\n",+ " raise NotImplementedError()\n",+ "\n",+ "class DummyValueImputation(MissingValueImputation):\n",+ " def __init__(self, dummy_value: float = 0.0) -> None:\n",+ " self.dummy_value = dummy_value\n",+ "\n",+ " def __call__(self, values: np.ndarray) -> np.ndarray:\n",+ " nan_indices = np.where(np.isnan(values))\n",+ " values[nan_indices] = self.dummy_value\n",+ " return values\n",+ "\n",+ "class LastValueImputation(MissingValueImputation):\n",+ " def __call__(self, values: np.ndarray) -> np.ndarray:\n",+ " if len(values) == 1 or np.isnan(values).all():\n",+ " return DummyValueImputation()(values)\n",+ " values = np.expand_dims(values, axis=0)\n",+ " mask = np.isnan(values)\n",+ " idx = np.where(~mask, np.arange(mask.shape[1]), 0)\n",+ " np.maximum.accumulate(idx, axis=1, out=idx)\n",+ " out = values[np.arange(idx.shape[0])[:, None], idx]\n",+ " values = np.squeeze(out)\n",+ " mask = np.isnan(values)\n",+ " values[mask] = np.interp(\n",+ " np.flatnonzero(mask), np.flatnonzero(~mask), values[~mask]\n",+ " )\n",+ " return values\n",+ "\n",+ "def preprocess_string_columns(\n",+ " dataset: datasets.Dataset, columns: List[str], bucket_size: int = 100\n",+ ") -> datasets.Dataset:\n",+ " cols_to_hash = []\n",+ " for col in columns:\n",+ " if col not in dataset.features:\n",+ " continue\n",+ " feat = dataset.features[col]\n",+ " if hasattr(feat, \"dtype\") and feat.dtype == \"string\":\n",+ " cols_to_hash.append(col)\n",+ " elif (\n",+ " hasattr(feat, \"feature\")\n",+ " and hasattr(feat.feature, \"dtype\")\n",+ " and feat.feature.dtype == \"string\"\n",+ " ):\n",+ " cols_to_hash.append(col)\n",+ " if not cols_to_hash:\n",+ " return dataset\n",+ "\n",+ " def _hash_batch(batch):\n",+ " updates = {}\n",+ " for col in cols_to_hash:\n",+ " hashed_col = []\n",+ " for seq in batch[col]:\n",+ " hashed_seq = [\n",+ " float(abs(hash(x)) % bucket_size) if isinstance(x, str) else 0.0\n",+ " for x in seq\n",+ " ]\n",+ " hashed_col.append(hashed_seq)\n",+ " updates[col] = hashed_col\n",+ " return updates\n",+ "\n",+ " return dataset.map(_hash_batch, batched=True)\n",+ "\n",+ "def prepare_covariates_for_timesfm3(\n",+ " task: fev.Task,\n",+ " imputation: MissingValueImputation,\n",+ " past_batch: dict,\n",+ " future_batch: Optional[dict],\n",+ " max_context_length: int = 15360,\n",+ " target_columns: Optional[List[str]] = None,\n",+ ") -> Tuple[List[np.ndarray], List[Optional[np.ndarray]], List[Optional[np.ndarray]]]:\n",+ " if target_columns is None:\n",+ " target_columns = task.target_columns\n",+ " if isinstance(target_columns, str):\n",+ " target_columns = [target_columns]\n",+ "\n",+ " batch_size = len(past_batch[target_columns[0]])\n",+ " inputs = []\n",+ " batch_pf_covariates = []\n",+ " batch_po_covariates = []\n",+ "\n",+ " for i in range(batch_size):\n",+ " pf_covs_list = []\n",+ " po_covs_list = []\n",+ " target_list = []\n",+ " orig_context_length = None\n",+ "\n",+ " for col in target_columns:\n",+ " b = np.array(past_batch[col][i], dtype=np.float32)\n",+ " inp = imputation(b.copy()) if np.isnan(b).any() else b\n",+ " if orig_context_length is None:\n",+ " orig_context_length = len(inp)\n",+ " if len(inp) > max_context_length:\n",+ " inp = inp[-max_context_length:]\n",+ " target_list.append(inp)\n",+ " inputs.append(np.stack(target_list, axis=0))\n",+ "\n",+ " if future_batch is not None:\n",+ " for col in task.known_dynamic_columns:\n",+ " p_data = np.array(past_batch[col][i], dtype=np.float32)\n",+ " f_data = np.array(future_batch[col][i], dtype=np.float32)\n",+ " p_imp = imputation(p_data.copy()) if np.isnan(p_data).any() else p_data\n",+ " f_imp = imputation(f_data.copy()) if np.isnan(f_data).any() else f_data\n",+ " if len(p_imp) > max_context_length:\n",+ " p_imp = p_imp[-max_context_length:]\n",+ " if (\n",+ " np.isnan(p_imp).sum() / p_imp.size > 0.25\n",+ " or np.isnan(f_imp).sum() / f_imp.size > 0.25\n",+ " ):\n",+ " continue\n",+ " full_cov = np.concatenate([p_imp, f_imp], axis=-1)\n",+ " pf_covs_list.append(full_cov)\n",+ "\n",+ " for col in task.past_dynamic_columns:\n",+ " p_data = np.array(past_batch[col][i], dtype=np.float32)\n",+ " p_imp = imputation(p_data.copy()) if np.isnan(p_data).any() else p_data\n",+ " if len(p_imp) > max_context_length:\n",+ " p_imp = p_imp[-max_context_length:]\n",+ " if np.isnan(p_imp).sum() / p_imp.size > 0.25:\n",+ " continue\n",+ " po_covs_list.append(p_imp)\n",+ "\n",+ " if pf_covs_list:\n",+ " batch_pf_covariates.append(np.stack(pf_covs_list, axis=0))\n",+ " else:\n",+ " batch_pf_covariates.append(None)\n",+ "\n",+ " if po_covs_list:\n",+ " batch_po_covariates.append(np.stack(po_covs_list, axis=0))\n",+ " else:\n",+ " batch_po_covariates.append(None)\n",+ "\n",+ " return inputs, batch_pf_covariates, batch_po_covariates\n",+ "\n",+ "def batchify(lst1, lst2, batch_size):\n",+ " for i in range(0, len(lst1), batch_size):\n",+ " b1 = lst1.select(range(i, min(i + batch_size, len(lst1))))\n",+ " b2 = lst2.select(range(i, min(i + batch_size, len(lst2)))) if lst2 is not None else None\n",+ " yield b1, b2\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "class TimesFM3FEVModel(fev.ForecastingModel):\n",+ " \"\"\"TimesFM-3 model wrapper for AutoGluon fev-bench with multivariate targets and dynamic covariates.\"\"\"\n",+ "\n",+ " model_name = \"TimesFM-3\"\n",+ " trained_on_datasets = []\n",+ " TIMESFM_MODEL_QUANTILES = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]\n",+ "\n",+ " def __init__(\n",+ " self,\n",+ " checkpoint_path: str = os.getenv(\"TIMESFM3_CHECKPOINT\", \"google/timesfm-3.0-pytorch\"),\n",+ " min_batch: int = 4,\n",+ " max_batch: int = 64,\n",+ " per_core_batch_size: int = 64,\n",+ " max_context_length: int = 15360,\n",+ " device: Optional[str] = None,\n",+ " forecaster: Optional[TimesFM3Evaluator] = None,\n",+ " ):\n",+ " super().__init__()\n",+ " self.checkpoint_path = checkpoint_path\n",+ " self.min_batch = min_batch\n",+ " self.max_batch = max_batch\n",+ " self.per_core_batch_size = per_core_batch_size\n",+ " self.max_context_length = max_context_length\n",+ " self.device = device\n",+ " self._forecaster = forecaster\n",+ "\n",+ " @property\n",+ " def forecaster(self) -> TimesFM3Evaluator:\n",+ " if self._forecaster is None:\n",+ " config = ModelConfig(\n",+ " checkpoint_path=self.checkpoint_path,\n",+ " per_core_batch_size=self.per_core_batch_size,\n",+ " use_variate_attention=True,\n",+ " use_sdpa=True,\n",+ " device=self.device,\n",+ " )\n",+ " self._forecaster = TimesFM3Evaluator(config)\n",+ " return self._forecaster\n",+ "\n",+ " @staticmethod\n",+ " def get_optimal_batch_size(\n",+ " max_context_len: int,\n",+ " num_variates: int = 1,\n",+ " min_batch: int = 4,\n",+ " max_batch: int = 64,\n",+ " ) -> int:\n",+ " \"\"\"Compute dynamic batch size scaled by total variates (capped at 32 chunk limit) and context length, rounded to nearest power of 2.\"\"\"\n",+ " full_context_count_per_ts = min(32, num_variates) * min(1.0, max(max_context_len, 32) / 15360.0)\n",+ " batch_size = 64.0 / max(full_context_count_per_ts, 0.01)\n",+ " power_of_2 = int(2 ** round(math.log2(batch_size))) if batch_size > 0 else 1\n",+ " return int(np.clip(power_of_2, min_batch, max_batch))\n",+ "\n",+ " def _fit_predict(self, task: fev.Task) -> list[datasets.DatasetDict]:\n",+ " predictions_per_window = []\n",+ " imputation = LastValueImputation()\n",+ " windows = list(task.iter_windows())\n",+ "\n",+ " print(f\"[{task.task_name}] Horizon: {task.horizon}, Total Windows: {len(windows)} | Targets: {len(task.target_columns)}, Past-Only Covs: {len(task.past_dynamic_columns)}, Past-Future Covs: {len(task.known_dynamic_columns)}\", flush=True)\n",+ "\n",+ " for w_idx, window in enumerate(windows):\n",+ " past_data, future_data = window.get_input_data()\n",+ " all_dynamic = task.known_dynamic_columns + task.past_dynamic_columns\n",+ " past_data = preprocess_string_columns(past_data, all_dynamic)\n",+ " if future_data is not None:\n",+ " future_data = preprocess_string_columns(future_data, task.known_dynamic_columns)\n",+ "\n",+ " past_features = past_data.features.copy()\n",+ " past_features.update({\n",+ " col: datasets.Sequence(datasets.Value(\"float32\"))\n",+ " for col in task.known_dynamic_columns + task.target_columns + task.past_dynamic_columns\n",+ " if col in past_data.features\n",+ " })\n",+ " past_data = past_data.cast(past_features)\n",+ " if future_data is not None:\n",+ " future_features = future_data.features.copy()\n",+ " future_features.update({\n",+ " col: datasets.Sequence(datasets.Value(\"float32\"))\n",+ " for col in task.known_dynamic_columns\n",+ " if col in future_data.features\n",+ " })\n",+ " future_data = future_data.cast(future_features)\n",+ "\n",+ " total_series = len(past_data)\n",+ " first_target_col = task.target_columns[0]\n",+ " max_context_len = max((len(row) for row in past_data[first_target_col]), default=32)\n",+ " total_variates = len(task.target_columns) + len(task.known_dynamic_columns) + len(task.past_dynamic_columns)\n",+ "\n",+ " dynamic_batch_size = self.get_optimal_batch_size(\n",+ " max_context_len=max_context_len,\n",+ " num_variates=total_variates,\n",+ " min_batch=self.min_batch,\n",+ " max_batch=self.max_batch,\n",+ " )\n",+ " total_batches = math.ceil(total_series / dynamic_batch_size)\n",+ " print(f\" -> Window {w_idx + 1}/{len(windows)}: total_series={total_series}, batch_size={dynamic_batch_size}, total_batches={total_batches}\", flush=True)\n",+ "\n",+ " quantile_to_index = {\n",+ " q: int(np.argmin(np.abs(np.array(self.TIMESFM_MODEL_QUANTILES) - q)))\n",+ " for q in task.quantile_levels\n",+ " }\n",+ " forecast_batches = []\n",+ " with self._record_inference_time():\n",+ " for b_idx, (past_batch, future_batch) in enumerate(batchify(past_data, future_data, dynamic_batch_size)):\n",+ " inputs, batch_pf, batch_po = prepare_covariates_for_timesfm3(\n",+ " task,\n",+ " imputation,\n",+ " past_batch,\n",+ " future_batch,\n",+ " max_context_length=self.max_context_length,\n",+ " target_columns=task.target_columns,\n",+ " )\n",+ " batch_outs = list(self.forecaster.predict_batch(\n",+ " contexts=inputs,\n",+ " horizon=window.horizon,\n",+ " past_only_covariates=batch_po,\n",+ " past_future_covariates=batch_pf,\n",+ " return_quantiles=True,\n",+ " use_symmetric_averaging=True,\n",+ " make_positive=True,\n",+ " sort_quantiles=True,\n",+ " ))\n",+ "\n",+ " for out in batch_outs:\n",+ " f = out.forecast\n",+ " q = out.quantiles\n",+ " if f.ndim == 1:\n",+ " f = f[np.newaxis, :]\n",+ " if q.ndim == 2:\n",+ " q = q[np.newaxis, ...]\n",+ "\n",+ " b_dict = {\"predictions\": f[:len(task.target_columns), :window.horizon]}\n",+ " for q_lvl in task.quantile_levels:\n",+ " q_i = quantile_to_index[q_lvl]\n",+ " b_dict[str(q_lvl)] = q[:len(task.target_columns), :window.horizon, q_i]\n",+ " forecast_batches.append(b_dict)\n",+ "\n",+ " print(f\" Batch [{b_idx + 1}/{total_batches}] ({len(inputs)} series) completed\", flush=True)\n",+ "\n",+ " if torch.cuda.is_available():\n",+ " torch.cuda.synchronize()\n",+ "\n",+ " predictions_dict = {}\n",+ " predictions_dict[\"predictions\"] = np.concatenate([b[\"predictions\"] for b in forecast_batches], axis=0)\n",+ " for q_lvl in task.quantile_levels:\n",+ " predictions_dict[str(q_lvl)] = np.concatenate([b[str(q_lvl)] for b in forecast_batches], axis=0)\n",+ "\n",+ " predictions = datasets.Dataset.from_dict(predictions_dict)\n",+ " window_pred = fev.combine_univariate_predictions_to_multivariate(\n",+ " predictions, target_columns=task.target_columns\n",+ " )\n",+ " predictions_per_window.append(window_pred)\n",+ "\n",+ " return predictions_per_window\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Initialize Model and Benchmark Configuration\n",+ "model = TimesFM3FEVModel(\n",+ " checkpoint_path=os.getenv(\"TIMESFM3_CHECKPOINT\", \"google/timesfm-3.0-pytorch\"),\n",+ " min_batch=4,\n",+ " max_batch=64,\n",+ " per_core_batch_size=64,\n",+ " max_context_length=15360,\n",+ ")\n",+ "print(f\"TimesFM-3 Model loaded successfully on: {model.forecaster.device}\", flush=True)\n",+ "print(f\"Adaptive Batch Sizing enabled: range=[{model.min_batch}, {model.max_batch}]\", flush=True)\n",+ "\n",+ "# Load AutoGluon fev-bench benchmark definition\n",+ "tasks_yaml_path = repo_root / \"fev/benchmarks/fev_bench/tasks.yaml\"\n",+ "benchmark = fev.Benchmark.from_yaml(str(tasks_yaml_path))\n",+ "print(f\"Successfully loaded fev-bench: {len(benchmark.tasks)} total benchmark tasks.\", flush=True)\n",+ "\n",+ "# Setup results destination\n",+ "results_dir = repo_root / \"TimesFM-3_multivariate/fev_bench\"\n",+ "results_dir.mkdir(parents=True, exist_ok=True)\n",+ "csv_file_path = results_dir / \"fev_bench_results.csv\"\n",+ "\n",+ "# Check completed tasks for resume support\n",+ "completed_tasks = set()\n",+ "if csv_file_path.exists() and csv_file_path.stat().st_size > 0:\n",+ " try:\n",+ " existing_df = pd.read_csv(csv_file_path)\n",+ " completed_tasks = set(existing_df[\"task_name\"].dropna().tolist())\n",+ " print(f\"Resuming: found {len(completed_tasks)} already completed tasks in CSV.\", flush=True)\n",+ " except Exception:\n",+ " pass\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Execute Evaluation across all 100 fev-bench tasks\n",+ "display_name = \"TimesFM-3\"\n",+ "extra_info = {\n",+ " \"model_class\": \"TimesFM-3\",\n",+ " \"model_kwargs\": json.dumps({\n",+ " \"device\": \"cuda\",\n",+ " \"max_context_length\": 15360,\n",+ " \"use_variate_attention\": True,\n",+ " }),\n",+ " \"framework_version\": f\"torch=={torch.__version__}\",\n",+ " \"fev_commit\": \"main\",\n",+ "}\n",+ "\n",+ "for task_idx, task in enumerate(benchmark.tasks):\n",+ " task_name = task.task_name\n",+ " if task_name in completed_tasks:\n",+ " print(f\"[{task_idx + 1}/{len(benchmark.tasks)}] Skipping {task_name} (already completed)\", flush=True)\n",+ " continue\n",+ "\n",+ " print(f\"\\n[{task_idx + 1}/{len(benchmark.tasks)}] Evaluating task: {task_name}...\", flush=True)\n",+ "\n",+ " try:\n",+ " predictions = model.fit_predict(task)\n",+ " summary = task.evaluation_summary(\n",+ " predictions,\n",+ " model_name=display_name,\n",+ " training_time_s=0.0,\n",+ " inference_time_s=model.inference_time,\n",+ " trained_on_this_dataset=task.dataset_config in model.trained_on_datasets,\n",+ " extra_info=extra_info,\n",+ " )\n",+ "\n",+ " # Append single row to CSV\n",+ " summary_df = pd.DataFrame([summary])\n",+ " write_header = not csv_file_path.exists() or csv_file_path.stat().st_size == 0\n",+ " summary_df.to_csv(csv_file_path, mode=\"a\", header=write_header, index=False)\n",+ "\n",+ " completed_tasks.add(task_name)\n",+ " print(f\" -> Test Error ({task.eval_metric}): {summary['test_error']:.4f} | SQL: {summary.get('SQL', np.nan):.4f} | MASE: {summary.get('MASE', np.nan):.4f} | WAPE: {summary.get('WAPE', np.nan):.4f} | Time: {summary['inference_time_s']:.2f}s\", flush=True)\n",+ "\n",+ " except Exception as e:\n",+ " print(f\" -> ERROR on {task_name}: {e}\", flush=True)\n",+ "\n",+ "print(f\"\\nAll fev-bench evaluations complete! Results saved to: {csv_file_path}\", flush=True)\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "def geomean(vals):\n",+ " arr = np.array(vals, dtype=np.float64)\n",+ " valid = arr[np.isfinite(arr) & (arr > 0)]\n",+ " return float(np.exp(np.mean(np.log(valid)))) if len(valid) > 0 else np.nan\n",+ "\n",+ "df = pd.read_csv(csv_file_path)\n",+ "df = df.drop_duplicates(subset=[\"task_name\"], keep=\"last\")\n",+ "\n",+ "print(\"=\" * 75, flush=True)\n",+ "print(f\"TOTAL EVALUATED FEV-BENCH TASKS: {len(df)} / {len(benchmark.tasks)}\", flush=True)\n",+ "print(\"=\" * 75, flush=True)\n",+ "print(f\"Overall Geometric Mean SQL: {geomean(df['SQL']):.6f}\", flush=True)\n",+ "print(f\"Overall Geometric Mean MASE: {geomean(df['MASE']):.6f}\", flush=True)\n",+ "print(f\"Overall Geometric Mean WAPE: {geomean(df['WAPE']):.6f}\", flush=True)\n",+ "print(f\"Overall Geometric Mean WQL: {geomean(df['WQL']):.6f}\", flush=True)\n",+ "print(f\"Overall Arithmetic Mean SQL: {df['SQL'].mean():.6f}\", flush=True)\n",+ "print(f\"Overall Arithmetic Mean MASE: {df['MASE'].mean():.6f}\", flush=True)\n",+ "print(\"=\" * 75, flush=True)\n",+ "\n",+ "# Breakdown Table by Primary Metric\n",+ "metric_summary = df.groupby(\"eval_metric\").agg(\n",+ " count=(\"task_name\", \"count\"),\n",+ " mean_test_error=(\"test_error\", \"mean\"),\n",+ " geomean_SQL=(\"SQL\", geomean),\n",+ " geomean_MASE=(\"MASE\", geomean),\n",+ " geomean_WAPE=(\"WAPE\", geomean),\n",+ " total_time_s=(\"inference_time_s\", \"sum\"),\n",+ ").reset_index()\n",+ "\n",+ "print(\"\\n--- Performance by Primary Evaluation Metric ---\", flush=True)\n",+ "print(metric_summary.to_string(index=False), flush=True)\n",+ "\n",+ "# Plot Key Metrics\n",+ "fig, axes = plt.subplots(1, 2, figsize=(14, 5))\n",+ "\n",+ "axes[0].hist(df[\"SQL\"].dropna(), bins=20, color=\"royalblue\", edgecolor=\"black\", alpha=0.85)\n",+ "axes[0].set_title(\"Distribution of Scaled Quantile Loss (SQL)\", fontsize=12, fontweight=\"bold\")\n",+ "axes[0].set_xlabel(\"SQL (Lower is Better)\")\n",+ "axes[0].set_ylabel(\"Task Count\")\n",+ "axes[0].grid(True, alpha=0.3)\n",+ "\n",+ "axes[1].hist(df[\"MASE\"].dropna(), bins=20, color=\"darkorange\", edgecolor=\"black\", alpha=0.85)\n",+ "axes[1].set_title(\"Distribution of MASE\", fontsize=12, fontweight=\"bold\")\n",+ "axes[1].set_xlabel(\"MASE (Lower is Better)\")\n",+ "axes[1].set_ylabel(\"Task Count\")\n",+ "axes[1].grid(True, alpha=0.3)\n",+ "\n",+ "plt.tight_layout()\n",+ "plt.savefig(results_dir / \"fev_bench_summary.png\", dpi=150)\n",+ "print(f\"\\nSummary plot saved to: {results_dir / 'fev_bench_summary.png'}\", flush=True)\n"+ ]+ }+ ],+ "metadata": {+ "kernelspec": {+ "display_name": "Python 3",+ "language": "python",+ "name": "python3"+ },+ "language_info": {+ "name": "python",+ "version": "3.12"+ }+ },+ "nbformat": 4,+ "nbformat_minor": 4+}diff --git a/timesfm3/benchmarks/fev_bench/run_fev_bench.py b/timesfm3/benchmarks/fev_bench/run_fev_bench.pynew file mode 100644index 0000000..03f0858--- /dev/null+++ b/timesfm3/benchmarks/fev_bench/run_fev_bench.py@@ -0,0 +1,29 @@+"""Direct runner for executing fev_bench_timesfm3.ipynb sequentially."""++import os+import sys+import json+import nbformat+from pathlib import Path++notebook_path = Path(__file__).parent / "fev_bench_timesfm3.ipynb"+print(f"Executing notebook: {notebook_path}")++with open(notebook_path, "r", encoding="utf-8") as f:+ nb = nbformat.read(f, as_version=4)++global_ns = {"__name__": "__main__", "__file__": str(notebook_path)}++for idx, cell in enumerate(nb.cells):+ if cell.cell_type == "code":+ code = "".join(cell.source)+ first_line = cell.source[0].strip() if cell.source else ""+ print(f"\n>>> Executing Notebook Cell {idx}: {first_line[:60]}...")+ try:+ exec(code, global_ns)+ print(f">>> Cell {idx} completed successfully.")+ except Exception as e:+ print(f">>> ERROR executing Cell {idx}: {e}")+ raise e++print("\nNotebook execution fully completed!")diff --git a/timesfm3/benchmarks/gift_eval/README.md b/timesfm3/benchmarks/gift_eval/README.mdnew file mode 100644index 0000000..d743e10--- /dev/null+++ b/timesfm3/benchmarks/gift_eval/README.md@@ -0,0 +1,10 @@+# Salesforce GIFT-Eval++Evaluates TimesFM 3.0 on the GIFT-Eval benchmark suite.++## Usage++```bash+pip install -e . datasets gluonts+python evaluate_all_gift.py+```diff --git a/timesfm3/benchmarks/gift_eval/all_results.csv b/timesfm3/benchmarks/gift_eval/all_results.csvnew file mode 100644index 0000000..91d953b--- /dev/null+++ b/timesfm3/benchmarks/gift_eval/all_results.csv@@ -0,0 +1,98 @@+dataset,model,eval_metrics/MSE[mean],eval_metrics/MSE[0.5],eval_metrics/MAE[0.5],eval_metrics/MASE[0.5],eval_metrics/MAPE[0.5],eval_metrics/sMAPE[0.5],eval_metrics/MSIS,eval_metrics/RMSE[mean],eval_metrics/NRMSE[mean],eval_metrics/ND[0.5],eval_metrics/mean_weighted_sum_quantile_loss,domain,num_variates+m4_yearly/A/short,TimesFM-3,3503688.766346338,3503688.766346338,857.8773059802353,3.1462196950959753,0.16381236208856662,0.14489402680840416,34.94210706968032,1871.814298039829,0.30015409756210787,0.13756460182249913,0.11366414766100968,Econ/Fin,1+electricity/W/short,TimesFM-3,38941722774.40788,38941722774.40788,26403.2539000915,1.39425983955764,0.10995496169514078,0.08936187899037457,11.014027604301088,197336.57231848303,0.4502569412189604,0.06024351289580651,0.04778762627979438,Energy,1+ett1/W/short,TimesFM-3,1091638.0714285714,1091638.0714285714,844.3853236607143,1.4846606211635383,0.6005055563790458,0.5454799107142857,8.91592977615297,1044.814850310126,0.4157567663169317,0.3360010738615092,0.24979519534641362,Energy,7+ett2/W/short,TimesFM-3,2935798.5714285714,2935798.5714285714,1161.9148995535713,0.7741010932191283,0.12269110339028495,0.12826154913221086,9.259990525694368,1713.417220477421,0.14372940959881692,0.09746682858152361,0.08535297963907307,Energy,7+hierarchical_sales/W/short,TimesFM-3,455.74253351001414,455.74253351001414,8.891986611535994,0.7131178940893438,0.5262385476760512,0.4550180704159252,6.559799372835327,21.348127166335086,0.9801029603521257,0.4082354547297763,0.3433919764748519,Sales,1+m4_quarterly/Q/short,TimesFM-3,1774542.3834394757,1774542.3834394757,553.225922120889,1.1562914423647235,0.11232106752383213,0.10119165879988577,9.10839207980546,1332.1195079419397,0.22297334768216107,0.09260027733579408,0.07418001107864844,Econ/Fin,1+solar/W/short,TimesFM-3,1611958.4525547444,1611958.4525547444,1017.3024064781022,1.1114785077915383,0.22833671252222826,0.1988646501172198,6.913081041144905,1269.6292579153744,0.2591630596975435,0.20765684364696024,0.1494861356800883,Energy,1+us_births/W/short,TimesFM-3,2053904.6785714286,2053904.6785714286,1094.6884765625,0.9952309050362876,0.014838326057153088,0.014850527048110962,6.539763995951704,1433.1450305434648,0.019454803263414675,0.014860288730286091,0.011643624937175677,Healthcare,1+hospital/M/short,TimesFM-3,2762.5178373519984,2762.5178373519984,17.924524069350472,0.7608739342940113,0.19140449854043814,0.17337882757083276,5.088308805482145,52.55965979106028,0.19080377013929647,0.0650701847002127,0.05118667951040737,Healthcare,1+us_births/M/short,TimesFM-3,33800176.0,33800176.0,4921.490885416667,0.5555901329098588,0.015177149325609207,0.01532135158777237,4.02028732710459,5813.791877939904,0.018057597934949078,0.01528611713580321,0.011323897796977992,Healthcare,1+m4_weekly/W/short,TimesFM-3,251247.07051923746,251247.07051923746,245.1792741035378,1.8651832392650565,0.0586395364119814,0.05874747866120102,13.528210542709555,501.245519201157,0.09131915961106274,0.04466786117284017,0.035528335737994785,Econ/Fin,1+m4_daily/D/short,TimesFM-3,353318.7849433644,353318.7849433644,173.44943743197825,3.2544187130989504,0.03667336348237116,0.03025468449867518,26.027700402493267,594.4062457136233,0.09181933777513226,0.02679314458305072,0.021118082600152962,Econ/Fin,1+m4_monthly/M/short,TimesFM-3,1846266.8513173263,1846266.8513173263,556.7913113850487,0.9291976533015147,0.15832783432192757,0.13856025899044686,7.69746432176034,1358.7740251113598,0.28239988859801407,0.11572034893336537,0.09247707698201296,Econ/Fin,1+covid_deaths/D/short,TimesFM-3,212156.7102915305,212156.7102915305,90.47187506526635,31.85853283121822,0.08534141150396546,0.12197626862739089,490.8541612396447,460.60472239386615,0.17330476018977822,0.034040481675084014,0.02883785447065403,Healthcare,1+electricity/D/short,TimesFM-3,1178211816.595393,1178211816.595393,4086.3257786898225,1.3509524814118257,0.2607584374083183,0.08798113127119513,10.736959596763018,34325.09019063741,0.5640752402451975,0.06715190499232311,0.05299952288164524,Energy,1+ett1/D/short,TimesFM-3,41809.49841269841,41809.49841269841,137.2592757936508,1.689289533515089,1.2028397817460317,0.4740934826078869,10.361194825589276,204.47371081070156,0.5370569839065881,0.36051604080871685,0.27590857988208617,Energy,7+ett2/D/short,TimesFM-3,103740.97777777778,103740.97777777778,196.26057787698412,1.305329261416103,0.4044804890950521,0.13466796875,12.131008422810597,322.088462658596,0.18433970426392463,0.11232509412440035,0.0918056263266395,Energy,7+hierarchical_sales/D/short,TimesFM-3,28.298361368009797,28.298361368009797,2.299205381055172,0.7431114095267414,0.6314085635749481,1.046682829323067,6.839660093631552,5.319620415782483,1.6320006323197283,0.7053707487441135,0.5683155583935959,Sales,1+jena_weather/D/short,TimesFM-3,372.20248015873017,372.20248015873017,9.516657366071428,1.0317361379163161,0.6183661188167565,0.444573974609375,6.754811097657519,19.292549861506906,0.11617268237692346,0.057305831598989616,0.044840394250372416,Nature,21+restaurant/D/short,TimesFM-3,138.09879123484308,138.09879123484308,7.063962003480401,0.6776819192027532,0.6671386441563629,0.39109882400340257,4.585508126504731,11.751544206394454,0.5408332924326253,0.32509989843568243,0.25417158288819697,Sales,1+solar/D/short,TimesFM-3,124022.03175182482,124022.03175182482,250.00811758667882,0.9756301682621439,1.07221226286134,0.42477366291983576,5.453758199801794,352.1676188291945,0.5087622834763238,0.3611765931628908,0.27196829383041693,Energy,1+us_births/D/short,TimesFM-3,129511.995,129511.995,213.07236002604168,0.31376460732114686,0.020793418486913046,0.020423723260561626,3.172857541262841,359.87775007632797,0.03373561883015076,0.019973804769966005,0.01624529399087357,Healthcare,1+loop_seattle/5T/short,TimesFM-3,41.26919927291949,41.26919927291949,3.4693421040034025,0.5483982660892082,0.0872315105885052,0.07428505797135203,4.069759760448714,6.42411077682503,0.1101593164555722,0.05949155735394018,0.04689477081727123,Transport,1+loop_seattle/5T/medium,TimesFM-3,60.373741554598816,60.373741554598816,4.410223616687629,0.7036179184040745,0.13410360275284303,0.10107457703235102,5.180907794315977,7.770054153903872,0.13824522970246209,0.07846694049382905,0.06183185273450366,Transport,1+loop_seattle/5T/long,TimesFM-3,71.78911807705538,71.78911807705538,4.718619735677532,0.7503941787382133,0.13989356304387845,0.10713871519659353,5.924039858942141,8.47284592548781,0.14980165805662393,0.08342616711781013,0.06635285068111146,Transport,1+loop_seattle/D/short,TimesFM-3,17.97023433216831,17.97023433216831,2.836119424447925,0.8576733882346694,0.052466769238128506,0.05239256365749489,7.199797089379018,4.2391313181085,0.07575893858162519,0.05068524213181856,0.04115013433990496,Transport,1+loop_seattle/H/short,TimesFM-3,33.99382735031664,33.99382735031664,3.1102117031131185,0.6425235968897001,0.09257618083770489,0.07276109667255828,5.2547647297791436,5.830422570476058,0.10320440843556944,0.055053909909477707,0.04409812958821329,Transport,1+loop_seattle/H/medium,TimesFM-3,37.158333018394444,37.158333018394444,3.2544890192147995,0.6801830045979114,0.0983919291304361,0.07534494267159571,5.62485148311194,6.095763530386858,0.1077419389371662,0.05752272958620915,0.04614407293965944,Transport,1+loop_seattle/H/long,TimesFM-3,42.8447577960392,42.8447577960392,3.4505188765130503,0.7324792019470878,0.109610706528807,0.08101684306551182,6.476197299597678,6.545590714063873,0.11697845081978615,0.06166538213757721,0.04978685265052924,Transport,1+m_dense/D/short,TimesFM-3,7013.4281481481485,7013.4281481481485,40.507744502314814,0.6180172561318447,0.11351187941407698,0.08976914864999276,7.017113469487579,83.74621273913316,0.1449770761293727,0.07012489480371528,0.05818676041478806,Transport,1+m_dense/H/short,TimesFM-3,34805.15263888889,34805.15263888889,78.46986490885416,0.6987144093547647,0.24765036141188287,0.19282756624726524,6.160135107150174,186.56139107245338,0.33091345148806456,0.13918600030542544,0.11202173672991927,Transport,1+m_dense/H/medium,TimesFM-3,27031.13888888889,27031.13888888889,69.42953993055555,0.6042068117052526,0.21937770390292924,0.17424690125913644,6.027240580256702,164.41149256937268,0.2860552345262433,0.12079863163765221,0.09851819179052357,Transport,1+m_dense/H/long,TimesFM-3,21264.24,21264.24,65.43032793209876,0.5762837960772745,0.2061687492985464,0.16723172781167533,5.277329801799863,145.82263198831654,0.25244054596459303,0.11326957606378105,0.09197107502070107,Transport,1+sz_taxi/15T/short,TimesFM-3,16.588846048301537,16.588846048301537,2.71269959553403,0.5411022618952311,1033067706917.6345,0.39017664934980417,3.8172024193022787,4.0729407125934864,0.3808373934548156,0.2536490256277944,0.19917043380963734,Transport,1+sz_taxi/15T/medium,TimesFM-3,16.199539680154913,16.199539680154913,2.7383427024906517,0.5336340180471625,9214309095918.164,0.40374830197065303,3.778005976307894,4.024865175400899,0.37458085652486023,0.2548484757269864,0.20073745468875334,Transport,1+sz_taxi/15T/long,TimesFM-3,15.317324663906696,15.317324663906696,2.6646693042200855,0.5027499372747223,6011010428141.882,0.39492813501602564,3.772282290673983,3.913735385013491,0.36224833831847875,0.2466370187719412,0.19526363985892253,Transport,1+sz_taxi/H/short,TimesFM-3,7.055914332724025,7.055914332724025,1.8254588852580795,0.5562488792684378,1.0083024359156942,0.29167722636817867,3.912719267940378,2.6562971092714807,0.247450467440018,0.17005275986372348,0.13384763648791528,Transport,1+bitbrains_fast_storage/5T/short,TimesFM-3,1638445.3239517082,1638445.3239517082,147.06815167531613,0.6520161564899772,1.8622050176631446,0.5607092793327371,12.456003927735287,1280.0177045461942,4.018939021026392,0.46175762367888823,0.36692357155115396,Web/CloudOps,2+bitbrains_fast_storage/5T/medium,TimesFM-3,2884460.4228269774,2884460.4228269774,273.70979406509883,0.9488882576816776,3.6258901391943574,0.662975655573758,20.336140677799527,1698.3699310889183,5.160116884240757,0.8316059439605281,0.6145719869301639,Web/CloudOps,2+bitbrains_fast_storage/5T/long,TimesFM-3,4588530.363073936,4588530.363073936,392.47311155400007,0.8659002418008438,4.539111804923756,0.681971590514727,14.986259348000784,2142.0855172177266,5.660892440575522,1.0371892496668091,0.6867193020879996,Web/CloudOps,2+bitbrains_fast_storage/H/short,TimesFM-3,2746510.6081014206,2746510.6081014206,306.16427154001053,0.9883050154380633,3.719984494894851,0.457105248944311,21.518377204366168,1657.2599699809987,4.723729270518078,0.8726676304605212,0.6642044356532839,Web/CloudOps,2+bitbrains_rnd/5T/short,TimesFM-3,1553801.9243132104,1553801.9243132104,112.80792076612212,1.6009568320718934,1.0089801895962867,0.4989677290615713,51.39212156884576,1246.5159141836941,5.100383296217385,0.4615774481574364,0.3664883621274993,Web/CloudOps,2+bitbrains_rnd/5T/medium,TimesFM-3,2287098.7941808053,2287098.7941808053,146.3592515576208,4.341134346606765,0.5228863820128176,0.6081814430618663,158.82238262880654,1512.3157058566856,6.363083162989174,0.6158079862077741,0.6223019750380947,Web/CloudOps,2+bitbrains_rnd/5T/long,TimesFM-3,2424841.7627370544,2424841.7627370544,172.8242158465286,3.267865521191836,1.3425527367001102,0.5810940597664728,114.88827620634663,1557.1903424877303,5.96524538742547,0.6620506358695528,0.6273095340302693,Web/CloudOps,2+bitbrains_rnd/H/short,TimesFM-3,1838310.719335694,1838310.719335694,144.62214842038173,5.824349713588624,1.1087795841237886,0.4454495375279256,197.4174565455192,1355.8431765273203,5.93383319717146,0.6329372896510848,0.6198692490392946,Web/CloudOps,2+bizitobs_l2c/5T/short,TimesFM-3,15.103057280040922,15.103057280040922,2.3184193929036456,0.23232801377154078,0.12790613342681856,0.16270633896108208,1.5161852984069653,3.886265209689236,0.13347007505059436,0.07962390461621308,0.06334709159659128,Web/CloudOps,7+bizitobs_l2c/5T/medium,TimesFM-3,66.40680272108844,66.40680272108844,4.927426126700681,0.47746486226493967,0.33841601332920224,0.5341365465405026,2.717882358975831,8.149036919850618,0.42875917876181574,0.2592550752037121,0.19747654589363914,Web/CloudOps,7+bizitobs_l2c/5T/long,TimesFM-3,69.23491567460317,69.23491567460317,4.856312934027778,0.47137081792435886,0.3529205621713506,0.6354318862801324,2.776638726942112,8.32075210991189,0.4671977914248023,0.27267471104478136,0.20844409403093223,Web/CloudOps,7+bizitobs_l2c/H/short,TimesFM-3,48.51048642113095,48.51048642113095,4.194230336991567,0.41386629224449833,0.3835889784266337,0.47416219706206575,2.5470577237959997,6.964946979061,0.3754285189197247,0.22607978038581,0.17459241975163092,Web/CloudOps,7+bizitobs_l2c/H/medium,TimesFM-3,70.84852120535714,70.84852120535714,4.743311128162202,0.47904082085405875,0.48476706055075486,0.6505875824191046,3.134677828446016,8.417156360990163,0.5096716025842873,0.28721469348609374,0.2250151557406627,Web/CloudOps,7+bizitobs_l2c/H/long,TimesFM-3,77.75832093253969,77.75832093253969,5.075651816716269,0.5424932844351289,0.6256360605986739,0.6722701860404671,4.055843051444421,8.818067868447129,0.5386330359158898,0.3100354621982889,0.2472533703042251,Web/CloudOps,7+bizitobs_application/10S/short,TimesFM-3,327765.12,327765.12,302.09125,0.8735500131505022,0.012924912770589193,0.012973319159613715,5.24829840010651,572.5077466724796,0.02207933541029392,0.01165045201926449,0.009196783537910237,Web/CloudOps,2+bizitobs_application/10S/medium,TimesFM-3,3460781.6533333333,3460781.6533333333,1022.5958333333333,2.180368741137848,0.03148911158243815,0.03209999084472656,18.890728026476907,1860.3176216263,0.07304919775935499,0.040154328695632145,0.0342501714931575,Web/CloudOps,2+bizitobs_application/10S/long,TimesFM-3,5571783.68,5571783.68,1435.7747222222222,3.0616074462265117,0.04449685414632162,0.04540783352322049,42.71327975376203,2360.4625987293252,0.09103360739433655,0.0553720920805313,0.049126370901151614,Web/CloudOps,2+bizitobs_service/10S/short,TimesFM-3,2033.4972627314814,2033.4972627314814,17.384536959532078,0.6710797539073208,0.05106609150215431,0.04236896858013496,4.675893910092278,45.09431519306487,0.03340731029846746,0.012879020739438612,0.009963825193221821,Web/CloudOps,2+bizitobs_service/10S/medium,TimesFM-3,8688.889007936508,8688.889007936508,30.620735677083335,0.9375255968680418,0.06055937025282118,0.05403809078156002,8.101321012120469,93.21421033263388,0.0701552071089226,0.02304588587499174,0.018319622840940006,Web/CloudOps,2+bizitobs_service/10S/long,TimesFM-3,132214.5038095238,132214.5038095238,74.37592013888889,1.2583445988738904,0.07499042490802744,0.07283843348265956,16.884530967518913,363.61312381365417,0.26937624237883523,0.055100062616964,0.05070459855278813,Web/CloudOps,2+car_parts/M/short,TimesFM-3,1.334488878786065,1.334488878786065,0.4690749286987621,0.8446227430811792,0.7703316035543128,1.8409123572616881,14.713726349477998,1.1552007958731958,2.7700530074984213,1.124793561107226,0.9654154963348175,Sales,1+electricity/15T/short,TimesFM-3,137177.9211217162,137177.9211217162,51.57059684684685,0.9931514951835507,0.16221452523117783,0.15087519551171683,11.7869351703669,370.37537866563997,0.7300828880141463,0.10165581313262406,0.0856792955447233,Energy,1+electricity/15T/medium,TimesFM-3,236694.13061235746,236694.13061235746,52.224811991923566,0.8177550092428212,0.1227335272727982,0.11739871884962075,7.0855168250253895,486.5122101369682,0.8383095235334775,0.08998860942307967,0.07238512086255422,Energy,1+electricity/15T/long,TimesFM-3,310989.5328455565,310989.5328455565,57.33660206397804,0.8631885556721001,0.1263174327613602,0.11985158318795996,7.048386077394734,557.6643550071642,0.8797839102391004,0.09045552133778004,0.07225353992923014,Energy,1+electricity/H/short,TimesFM-3,1257598.795777203,1257598.795777203,152.3083212225287,0.8532741550328985,0.14355418484559945,0.10702459814385243,8.810037219430466,1121.4271245949078,0.5293936871264656,0.0719004043897751,0.05838074442151623,Energy,1+electricity/H/medium,TimesFM-3,4811715.966082489,4811715.966082489,223.80720813098256,1.0030183595518274,0.20785368333686344,0.11281812501287071,7.867313825621529,2193.562391654837,0.8562196699002169,0.08735932681752151,0.06950395040596309,Energy,1+electricity/H/long,TimesFM-3,5670430.319237237,5670430.319237237,237.47794463213214,1.0755614837302285,0.26294924844841927,0.12174313426089205,8.372372652854331,2381.2665367902932,0.9391708205748717,0.09366123140050445,0.07426726759632361,Energy,1+ett1/15T/short,TimesFM-3,4.628930446079799,4.628930446079799,1.0426458631243025,0.6616434221749019,0.4899383054168683,0.2298306011018299,4.537883337849377,2.151494932850133,0.4067220874489182,0.1971034630130986,0.15171042131834273,Energy,7+ett1/15T/medium,TimesFM-3,8.731388268849207,8.731388268849207,1.5513099888392856,0.9734059724494041,0.7399710667707111,0.3804946754092262,6.29740946998087,2.954892260108515,0.5632053198449208,0.2956811827754304,0.22553352150456746,Energy,7+ett1/15T/long,TimesFM-3,8.232173859126984,8.232173859126984,1.530777839781746,0.9835498950041619,0.7417333408715879,0.38508746434771823,6.790932759754645,2.8691765123684854,0.5468678801345616,0.2917677698077067,0.22464377522746778,Energy,7+ett1/H/short,TimesFM-3,97.81426130022321,97.81426130022321,4.96475103469122,0.821850643033638,0.45647920426868255,0.2631310190473284,5.595471125206318,9.890109266343988,0.461611861573165,0.23172524242680095,0.17870330185104058,Energy,7+ett1/H/medium,TimesFM-3,140.36229538690475,140.36229538690475,7.065569196428571,1.2785211337015496,3918043088179.299,0.4393359229678199,8.330357934777005,11.84745944862884,0.5674652232857554,0.33842401563622393,0.2575966248248759,Energy,7+ett1/H/long,TimesFM-3,159.40912698412697,159.40912698412697,7.626437458664022,1.4137977727669322,2864926416401.3047,0.4734348519138558,8.919293909480055,12.62573273058348,0.604618995029055,0.3652135721786569,0.2762128461176242,Energy,7+ett2/15T/short,TimesFM-3,7.185903058733259,7.185903058733259,1.6664300464448474,0.7205959138747781,0.10246163656973292,0.12197068759373256,4.828889223573157,2.6806534760638607,0.12726016032708112,0.07911136473925376,0.06141963647010001,Energy,7+ett2/15T/medium,TimesFM-3,10.750479910714287,10.750479910714287,2.049423053075397,0.84654335535473,0.12859760909379472,0.15680926610553075,6.400628113732973,3.2787924470320298,0.174732772999679,0.10921745700539434,0.08668192099442744,Energy,7+ett2/15T/long,TimesFM-3,10.472776537698413,10.472776537698413,2.0558107018849205,0.859404402479913,0.13223914667264555,0.1615120152064732,6.841664826572857,3.2361669514563696,0.17246118333282995,0.10955786635044042,0.08892630845908067,Energy,7+ett2/H/short,TimesFM-3,103.46914992559523,103.46914992559523,6.265942237490699,0.7285966379103683,0.11969356676170768,0.10936720711844308,5.160484652030539,10.171978663249114,0.12900899199747864,0.07946958195003677,0.06287428977097356,Energy,7+ett2/H/medium,TimesFM-3,240.83919270833334,240.83919270833334,9.567189243861607,1.023853843535806,0.17397952776421544,0.1660277593703497,7.226529575403655,15.518994577882077,0.20912841872373325,0.12892401941109113,0.10212520552912102,Energy,7+ett2/H/long,TimesFM-3,223.37635582010583,223.37635582010583,9.07358630952381,0.9972570477490642,0.17551904724361758,0.16822651858052248,7.655001076969633,14.945780535659749,0.2046709613136185,0.12425578096114795,0.09997313428925016,Energy,7+jena_weather/10T/short,TimesFM-3,789.9992249503969,789.9992249503969,5.3248535640656005,0.2558105440858492,0.3340751691641377,0.3649787985204654,2.1034749954024066,28.106924857593313,0.17457923037582665,0.03307401438572561,0.02653720909383074,Nature,21+jena_weather/10T/medium,TimesFM-3,1416.2767676767676,1416.2767676767676,8.969105677308802,0.5589667704575992,0.6609348408249074,0.5439591174387461,5.272281677959595,37.63345277378582,0.23095583075065185,0.055043242118782046,0.04474890581234838,Nature,21+jena_weather/10T/long,TimesFM-3,1413.9712962962963,1413.9712962962963,9.35625103339947,0.6085671927049355,0.7132271412066555,0.5785597548050355,5.4968952273319935,37.602809686196274,0.23009804027879371,0.05725250440346628,0.04634130235030703,Nature,21+jena_weather/H/short,TimesFM-3,1076.3031798245613,1076.3031798245613,8.219656910015924,0.5161686221258845,1.3967846766614478,0.47758103525979023,4.438008083084912,32.807059908266105,0.20110517528130217,0.050385970222964836,0.04067367480247306,Nature,21+jena_weather/H/medium,TimesFM-3,1248.0508928571428,1248.0508928571428,9.933130270337301,0.7715354979135327,2.2707250818843203,0.5426974505206932,6.240167575233775,35.32776376813487,0.21617683558137427,0.060782581183242715,0.04897154941010042,Nature,21+jena_weather/H/long,TimesFM-3,1244.7603174603175,1244.7603174603175,10.507120122354497,0.8200351895077553,2.162040755942788,0.5380332492531112,6.31093865670689,35.2811609426379,0.21243169892732477,0.0632645105430128,0.05107065689886933,Nature,21+kdd_cup_2018/D/short,TimesFM-3,2924.1873576617463,2924.1873576617463,21.201646032814683,1.1936617459637027,0.5292277929353083,0.4657358904770773,9.296051679347812,54.07575572899325,1.2113543667760842,0.4749393912015337,0.37711275167348596,Nature,1+kdd_cup_2018/H/short,TimesFM-3,4287.582431914319,4287.582431914319,22.057724004179043,0.9259672249955985,0.8064361629722895,0.4942834225937018,7.408968090642186,65.47963371854121,1.370607319674021,0.4617081107299555,0.3693256182267981,Nature,1+kdd_cup_2018/H/medium,TimesFM-3,5343.732481910371,5343.732481910371,25.49504523504452,1.0431895192421787,0.8725203553345684,0.5629686015613687,8.608251802507088,73.10083776476417,1.5301329305933513,0.5336574719792417,0.427740906595264,Nature,1+kdd_cup_2018/H/long,TimesFM-3,4030.227852690106,4030.227852690106,23.284416268506746,0.9918069949808022,0.9699417673569398,0.5954184342107866,7.586857519574525,63.484075583488696,1.4895929584321297,0.5463465002204595,0.43286848763851743,Nature,1+m4_hourly/H/short,TimesFM-3,1303496.0663316299,1303496.0663316299,197.7732605650037,0.6937364295322749,0.08747793606897868,0.0798346247649999,5.516100030039902,1141.707522236597,0.15586829807385483,0.02700041904637284,0.021194311919734015,Econ/Fin,1+saugeen/D/short,TimesFM-3,1102.6192708333333,1102.6192708333333,12.301183268229167,2.7331118492478894,0.27104970296223957,0.31120330810546876,24.969784269263705,33.2057114188709,1.0755409046299527,0.39843825700452085,0.32110692113730854,Nature,1+saugeen/M/short,TimesFM-3,381.7592075892857,381.7592075892857,12.111094156901041,0.7096641962765166,0.3368700799487886,0.3455102330162412,4.476485860093555,19.53865930890054,0.5866091678821296,0.3636113795323461,0.28452070674190133,Nature,1+saugeen/W/short,TimesFM-3,930.2939453125,930.2939453125,14.499453735351562,1.1761591493091477,0.35410854816436765,0.3767219066619873,10.026274569959046,30.50072040645106,0.9206896075902594,0.4376780676646071,0.35002236809028986,Nature,1+solar/10T/short,TimesFM-3,22.424532479613365,22.424532479613365,2.0268126104869983,0.8940119860565149,5.554944391906144,1.326013345008826,3.7197859324686116,4.7354548334466635,1.3775432699646648,0.5895995568019654,0.4391923309215235,Energy,1+solar/10T/medium,TimesFM-3,23.572586912118446,23.572586912118446,1.864665258956467,0.8149286611370575,4.2311984947668355,0.9869431869922652,4.040383733121362,4.85516085337226,1.0773794696795576,0.4137766241934191,0.31941202040447386,Energy,1+solar/10T/long,TimesFM-3,22.98673197675892,22.98673197675892,1.8541096064682812,0.8113686611184681,4.096145443291947,1.0208601646922455,4.240259518009875,4.794448036714854,1.036243257017053,0.4007361353716485,0.30997765193713234,Energy,1+solar/H/short,TimesFM-3,703.0875607272058,703.0875607272058,11.206749420615436,0.8655165620201437,4.8423208796648165,1.0254572293349982,5.102001151287127,26.51579832339969,0.9773811551759106,0.4130845151594788,0.320115732073446,Energy,1+solar/H/medium,TimesFM-3,778.5283302919707,778.5283302919707,11.327637253364507,0.8657092560630664,5.590692408803822,0.9455538699642154,5.3476276744695825,27.902120533966066,1.0050994968987113,0.4080479292083905,0.3244878808388486,Energy,1+solar/H/long,TimesFM-3,772.0972070154096,772.0972070154096,11.985871287003244,0.912186199471791,6.8909724515207245,0.9250377295979134,5.296315350106757,27.786637202356992,0.9634134890849045,0.4155720604922596,0.32220150069793496,Energy,1+temperature_rain/D/short,TimesFM-3,185.07868393305628,185.07868393305628,5.749642490916847,1.3355575716936554,17.242996176801217,1.4501468507379338,18.908336964271832,13.604362680149933,1.6015931752482413,0.676884936844997,0.5467092586702655,Nature,1diff --git a/timesfm3/benchmarks/gift_eval/evaluate_all_gift.py b/timesfm3/benchmarks/gift_eval/evaluate_all_gift.pynew file mode 100644index 0000000..ad50258--- /dev/null+++ b/timesfm3/benchmarks/gift_eval/evaluate_all_gift.py@@ -0,0 +1,405 @@+"""Official Full GIFT-Eval Benchmark Evaluator for TimesFM 3.0 (All 97 Configurations)."""++import os+import sys+import csv+import json+import math+import logging+import datetime+import warnings+from pathlib import Path+from typing import List++import numpy as np+import pandas as pd+import torch++# Suppress noisy warnings+warnings.filterwarnings("ignore", category=FutureWarning)+warnings.filterwarnings("ignore", category=RuntimeWarning)+warnings.filterwarnings("ignore", category=UserWarning)+warnings.filterwarnings("ignore", message=".*The mean prediction is not stored in the forecast data.*")++def find_repo_root():+ curr = Path.cwd().resolve()+ for p in [curr] + list(curr.parents):+ if (p / "src" / "timesfm3").exists() or (p / "pyproject.toml").exists():+ return p+ return curr+++repo_root = find_repo_root()+if str(repo_root / "src") not in sys.path:+ sys.path.insert(0, str(repo_root / "src"))+if str(repo_root) not in sys.path:+ sys.path.insert(0, str(repo_root))++default_gift_dir = os.path.expanduser("~/data/gift_eval")+os.environ["GIFT_EVAL"] = os.getenv("GIFT_EVAL", default_gift_dir)++# Set up results directory & logging+results_dir = repo_root / "results/TimesFM-3_multivariate"+results_dir.mkdir(parents=True, exist_ok=True)++log_file_path = results_dir / "evaluation.log"+++class SuppressGluonTSWarningFilter(logging.Filter):+ """Filters out noisy GluonTS QuantileForecast mean-to-median fallback warnings."""+ def filter(self, record: logging.LogRecord) -> bool:+ msg = record.getMessage()+ if "The mean prediction is not stored in the forecast data" in msg:+ return False+ return True+++filter_instance = SuppressGluonTSWarningFilter()+file_handler = logging.FileHandler(str(log_file_path), mode="a")+file_handler.addFilter(filter_instance)+stream_handler = logging.StreamHandler(sys.stdout)+stream_handler.addFilter(filter_instance)++logging.basicConfig(+ level=logging.INFO,+ format="%(asctime)s [%(levelname)s] %(message)s",+ datefmt="%Y-%m-%d %H:%M:%S",+ handlers=[file_handler, stream_handler],+)+logging.getLogger("gluonts").setLevel(logging.ERROR)+logging.getLogger("gluonts.model.forecast").setLevel(logging.ERROR)+logging.getLogger().addFilter(filter_instance)+logger = logging.getLogger("TimesFM3-GIFT-Eval")++from gluonts.ev.metrics import (+ MAE,+ MAPE,+ MASE,+ MSE,+ MSIS,+ ND,+ NRMSE,+ RMSE,+ SMAPE,+ MeanWeightedSumQuantileLoss,+)+from gluonts.itertools import batcher+from gluonts.model import evaluate_model+from gluonts.model.forecast import QuantileForecast+from gluonts.time_feature import get_seasonality+from gift_eval.data import Dataset, Term++from timesfm3 import TimesFM3Evaluator, ModelConfig++# Standard GIFT-Eval evaluation metrics+metrics = [+ MSE(forecast_type="mean"),+ MSE(forecast_type=0.5),+ MAE(),+ MASE(),+ MAPE(),+ SMAPE(),+ MSIS(),+ RMSE(),+ NRMSE(),+ ND(),+ MeanWeightedSumQuantileLoss(+ quantile_levels=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]+ ),+]++# Official dataset list from gift-eval timesfm2p5.ipynb and gift_eval_timesfm3.ipynb+short_datasets = (+ "m4_yearly m4_quarterly m4_monthly m4_weekly m4_daily m4_hourly "+ "electricity/15T electricity/H electricity/D electricity/W "+ "solar/10T solar/H solar/D solar/W hospital covid_deaths "+ "us_births/D us_births/M us_births/W saugeenday/D saugeenday/M saugeenday/W "+ "temperature_rain_with_missing kdd_cup_2018_with_missing/H kdd_cup_2018_with_missing/D "+ "car_parts_with_missing restaurant hierarchical_sales/D hierarchical_sales/W "+ "LOOP_SEATTLE/5T LOOP_SEATTLE/H LOOP_SEATTLE/D SZ_TAXI/15T SZ_TAXI/H "+ "M_DENSE/H M_DENSE/D ett1/15T ett1/H ett1/D ett1/W "+ "ett2/15T ett2/H ett2/D ett2/W jena_weather/10T jena_weather/H jena_weather/D "+ "bitbrains_fast_storage/5T bitbrains_fast_storage/H bitbrains_rnd/5T bitbrains_rnd/H "+ "bizitobs_application bizitobs_service bizitobs_l2c/5T bizitobs_l2c/H"+)++med_long_datasets = (+ "electricity/15T electricity/H solar/10T solar/H "+ "kdd_cup_2018_with_missing/H LOOP_SEATTLE/5T LOOP_SEATTLE/H SZ_TAXI/15T M_DENSE/H "+ "ett1/15T ett1/H ett2/15T ett2/H jena_weather/10T jena_weather/H "+ "bitbrains_fast_storage/5T bitbrains_rnd/5T bizitobs_application bizitobs_service "+ "bizitobs_l2c/5T bizitobs_l2c/H"+)++all_datasets = sorted(list(set(short_datasets.split() + med_long_datasets.split())))++# Load metadata properties mapping+props_path = repo_root / "gift-eval/notebooks/dataset_properties.json"+with open(props_path, "r") as f:+ dataset_properties_map = json.load(f)++pretty_names = {+ "saugeenday": "saugeen",+ "temperature_rain_with_missing": "temperature_rain",+ "kdd_cup_2018_with_missing": "kdd_cup_2018",+ "car_parts_with_missing": "car_parts",+ "loop_seattle": "loop_seattle",+ "m_dense": "m_dense",+ "sz_taxi": "sz_taxi",+}+++class TimesFm3Predictor:+ """GluonTS Predictor wrapper for TimesFM 3.0 with adaptive batching."""++ def __init__(self, forecaster: TimesFM3Evaluator, prediction_length: int, batch_size: int = 64):+ self.forecaster = forecaster+ self.prediction_length = prediction_length+ self.batch_size = batch_size+ self.quantiles = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]++ def predict(self, test_data_input, batch_size: int = None) -> List[QuantileForecast]:+ if batch_size is None:+ batch_size = self.batch_size+ self.forecaster.config.per_core_batch_size = batch_size++ if hasattr(test_data_input, "__len__"):+ inputs_list = test_data_input+ total_series = len(test_data_input)+ else:+ inputs_list = list(test_data_input)+ total_series = len(inputs_list)++ total_batches = math.ceil(total_series / batch_size) if total_series > 0 else 0+ forecasts = []+ batch_idx = 0++ for batch in batcher(inputs_list, batch_size=batch_size):+ contexts = [np.array(entry["target"], dtype=np.float32) for entry in batch]+ past_covs = [+ np.array(entry["past_feat_dynamic_real"], dtype=np.float32)+ if ("past_feat_dynamic_real" in entry and entry["past_feat_dynamic_real"] is not None)+ else None+ for entry in batch+ ]+ outputs = list(+ self.forecaster.predict_batch(+ contexts=contexts,+ horizon=self.prediction_length,+ past_only_covariates=past_covs,+ return_quantiles=True,+ use_symmetric_averaging=True,+ make_positive=True,+ sort_quantiles=True,+ )+ )+ for out, entry in zip(outputs, batch):+ target_len = entry["target"].shape[-1]+ forecast_start_date = entry["start"] + target_len+ if out.quantiles.ndim == 3:+ q_arr = np.transpose(out.quantiles[:, : self.prediction_length, :], (2, 1, 0))+ else:+ q_arr = out.quantiles[: self.prediction_length, :].T+ forecasts.append(+ QuantileForecast(+ forecast_arrays=q_arr,+ forecast_keys=[str(q) for q in self.quantiles],+ start_date=forecast_start_date,+ )+ )+ batch_idx += 1+ if batch_idx % 10 == 0 or batch_idx == total_batches or total_batches <= 10:+ logger.info(f" [Predictor] Batch {batch_idx}/{total_batches} complete ({len(forecasts)}/{total_series} forecasts generated)...")+ return forecasts+++def geomean(vals):+ arr = np.array(vals, dtype=np.float64)+ valid = arr[np.isfinite(arr) & (arr > 0)]+ return float(np.exp(np.mean(np.log(valid)))) if len(valid) > 0 else np.nan+++def main():+ logger.info("=" * 80)+ logger.info("Starting TimesFM-3.0 Official GIFT-Eval Benchmark Evaluation")+ logger.info("=" * 80)+ logger.info(f"PyTorch version: {torch.__version__}, CUDA Available: {torch.cuda.is_available()}")+ if torch.cuda.is_available():+ logger.info(f"Active GPU: {torch.cuda.get_device_name(0)}")++ config = ModelConfig(+ checkpoint_path=os.getenv(+ "TIMESFM3_CHECKPOINT", "google/timesfm-3.0-pytorch"+ ),+ input_patch_length=32,+ output_patch_length=64,+ per_core_batch_size=64,+ use_variate_attention=True,+ use_sdpa=True,+ )+ forecaster = TimesFM3Evaluator(config)+ logger.info(f"Loaded TimesFM-3 Evaluator on: {forecaster.device}")++ model_name = "TimesFM-3"+ csv_file_path = results_dir / "all_results.csv"++ header = [+ "dataset",+ "model",+ "eval_metrics/MSE[mean]",+ "eval_metrics/MSE[0.5]",+ "eval_metrics/MAE[0.5]",+ "eval_metrics/MASE[0.5]",+ "eval_metrics/MAPE[0.5]",+ "eval_metrics/sMAPE[0.5]",+ "eval_metrics/MSIS",+ "eval_metrics/RMSE[mean]",+ "eval_metrics/NRMSE[mean]",+ "eval_metrics/ND[0.5]",+ "eval_metrics/mean_weighted_sum_quantile_loss",+ "domain",+ "num_variates",+ ]++ completed_configs = set()+ if csv_file_path.exists() and csv_file_path.stat().st_size > 0:+ try:+ existing_df = pd.read_csv(csv_file_path)+ completed_configs.update(existing_df["dataset"].dropna().tolist())+ except Exception:+ pass++ if not csv_file_path.exists() or csv_file_path.stat().st_size == 0:+ with open(csv_file_path, "w", newline="") as f:+ writer = csv.writer(f)+ writer.writerow(header)++ logger.info(f"Resume Status: Found {len(completed_configs)} already completed configurations.")++ total_configs_run = 0++ for ds_num, ds_name in enumerate(all_datasets):+ terms = ["short", "medium", "long"]+ for term in terms:+ if (term in ["medium", "long"]) and (ds_name not in med_long_datasets.split()):+ continue++ if "/" in ds_name:+ ds_key = ds_name.split("/")[0]+ ds_freq = ds_name.split("/")[1]+ ds_key = ds_key.lower()+ ds_key = pretty_names.get(ds_key, ds_key)+ else:+ ds_key = ds_name.lower()+ ds_key = pretty_names.get(ds_key, ds_key)+ ds_freq = dataset_properties_map[ds_key]["frequency"]++ ds_config = f"{ds_key}/{ds_freq}/{term}"+ total_configs_run += 1++ if ds_config in completed_configs:+ logger.info(f"[{total_configs_run}/97] Skipping {ds_config} (already completed)")+ continue++ domain = dataset_properties_map[ds_key]["domain"]+ num_variates = dataset_properties_map[ds_key]["num_variates"]+ batch_size = 16 if num_variates > 1 else 64++ logger.info(f"\n[{total_configs_run}/97] Evaluating {ds_config} (disk: {ds_name}, batch_size={batch_size}, variates={num_variates})...")++ try:+ dataset = Dataset(name=ds_name, term=term, to_univariate=False)+ seasonality = get_seasonality(dataset.freq)+ total_series = len(dataset.test_data)+ total_batches = math.ceil(total_series / batch_size)++ # Inspect first sample for covariate inspection+ sample_item = dataset.test_data[0] if hasattr(dataset.test_data, "__getitem__") else next(iter(dataset.test_data))+ sample = sample_item[0] if isinstance(sample_item, tuple) else sample_item+ tgt_shape = np.array(sample["target"]).shape+ has_po = "past_feat_dynamic_real" in sample and sample["past_feat_dynamic_real"] is not None+ po_dim = np.array(sample["past_feat_dynamic_real"]).shape[0] if has_po else 0++ logger.info(+ f" -> Dataset Info: Total series/windows={total_series:,} | Targets={num_variates} (shape {tgt_shape}) | "+ f"Past covariates={po_dim} | Total batches={total_batches} (batch_size={batch_size})"+ )++ predictor = TimesFm3Predictor(+ forecaster=forecaster,+ prediction_length=dataset.prediction_length,+ batch_size=batch_size,+ )++ res = evaluate_model(+ predictor,+ test_data=dataset.test_data,+ metrics=metrics,+ batch_size=batch_size,+ axis=None,+ mask_invalid_label=True,+ allow_nan_forecast=False,+ seasonality=seasonality,+ )++ row = [+ ds_config,+ model_name,+ res["MSE[mean]"][0],+ res["MSE[0.5]"][0],+ res["MAE[0.5]"][0],+ res["MASE[0.5]"][0],+ res["MAPE[0.5]"][0],+ res["sMAPE[0.5]"][0],+ res["MSIS"][0],+ res["RMSE[mean]"][0],+ res["NRMSE[mean]"][0],+ res["ND[0.5]"][0],+ res["mean_weighted_sum_quantile_loss"][0],+ domain,+ num_variates,+ ]++ with open(csv_file_path, "a", newline="") as f:+ writer = csv.writer(f)+ writer.writerow(row)++ completed_configs.add(ds_config)+ logger.info(+ f" [{ds_config}] MASE[0.5]: {res['MASE[0.5]'][0]:.4f} | "+ f"CRPS (MWQL): {res['mean_weighted_sum_quantile_loss'][0]:.4f} | "+ f"sMAPE: {res['sMAPE[0.5]'][0]:.4f} | NRMSE: {res['NRMSE[mean]'][0]:.4f}"+ )++ except Exception as e:+ logger.error(f" -> ERROR on {ds_config}: {e}", exc_info=True)++ # Final summary over all configurations+ df = pd.read_csv(csv_file_path)+ df = df.drop_duplicates(subset=["dataset"], keep="last")++ logger.info("\n" + "=" * 75)+ logger.info(f"TOTAL EVALUATED CONFIGURATIONS: {len(df)} / 97")+ logger.info("=" * 75)+ logger.info(f"Overall Geometric Mean MASE: {geomean(df['eval_metrics/MASE[0.5]']):.6f}")+ logger.info(f"Overall Geometric Mean CRPS (MWQL): {geomean(df['eval_metrics/mean_weighted_sum_quantile_loss']):.6f}")+ logger.info(f"Overall Geometric Mean sMAPE: {geomean(df['eval_metrics/sMAPE[0.5]']):.6f}")+ logger.info(f"Overall Arithmetic Mean MASE: {df['eval_metrics/MASE[0.5]'].mean():.6f}")+ logger.info(f"Overall Arithmetic Mean CRPS: {df['eval_metrics/mean_weighted_sum_quantile_loss'].mean():.6f}")+ logger.info("=" * 75)++ domain_summary = df.groupby("domain").agg(+ count=("dataset", "count"),+ geomean_MASE=("eval_metrics/MASE[0.5]", geomean),+ geomean_CRPS=("eval_metrics/mean_weighted_sum_quantile_loss", geomean),+ mean_MASE=("eval_metrics/MASE[0.5]", "mean"),+ mean_CRPS=("eval_metrics/mean_weighted_sum_quantile_loss", "mean"),+ mean_sMAPE=("eval_metrics/sMAPE[0.5]", "mean"),+ ).reset_index()++ logger.info("\n--- Domain Performance Breakdown ---")+ logger.info("\n" + domain_summary.to_string(index=False))+++if __name__ == "__main__":+ main()diff --git a/timesfm3/benchmarks/gift_eval/gift_eval_timesfm3.ipynb b/timesfm3/benchmarks/gift_eval/gift_eval_timesfm3.ipynbnew file mode 100644index 0000000..fe72251--- /dev/null+++ b/timesfm3/benchmarks/gift_eval/gift_eval_timesfm3.ipynb@@ -0,0 +1,482 @@+{+ "cells": [+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "# TimesFM-3: Zero-Shot Evaluation on Salesforce GIFT-Eval Benchmark\n",+ "\n",+ "This notebook evaluates **TimesFM-3** on the full **Salesforce GIFT-Eval** benchmark suite (97 dataset configurations across 7 domains and short, medium, and long horizons), matching the official evaluation protocol from `gift-eval/notebooks/timesfm2p5.ipynb`.\n",+ "\n",+ "### Evaluation Details:\n",+ "- **Model Name**: `TimesFM-3`\n",+ "- **Architecture**: TimesFM-3 PyTorch with cross-variate attention (`use_variate_attention=True`)\n",+ "- **Inference Pipeline**:\n",+ " - Variate chunking ($\\le 32$ variates per forward pass)\n",+ " - Adaptive batch sizing (16 for multivariate, 64 for univariate)\n",+ " - Symmetric averaging & non-negativity constraint clamping\n",+ "- **Results Output**: `results/TimesFM-3_multivariate/all_results.csv`"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "import os\n",+ "import sys\n",+ "import csv\n",+ "import json\n",+ "import math\n",+ "import warnings\n",+ "from pathlib import Path\n",+ "from typing import List\n",+ "\n",+ "import matplotlib.pyplot as plt\n",+ "import numpy as np\n",+ "import pandas as pd\n",+ "import torch\n",+ "\n",+ "# Suppress noisy warnings\n",+ "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",+ "warnings.filterwarnings(\"ignore\", category=RuntimeWarning)\n",+ "warnings.filterwarnings(\"ignore\", category=UserWarning)\n",+ "warnings.filterwarnings(\"ignore\", message=\".*The mean prediction is not stored in the forecast data.*\")\n",+ "\n",+ "def find_repo_root():\n",+ " curr = Path.cwd().resolve()\n",+ " for p in [curr] + list(curr.parents):\n",+ " if (p / 'src' / 'timesfm3').exists() or (p / 'pyproject.toml').exists():\n",+ " return p\n",+ " return curr\n",+ "\n",+ "repo_root = find_repo_root()\n",+ "if str(repo_root / \"src\") not in sys.path:\n",+ " sys.path.insert(0, str(repo_root / \"src\"))\n",+ "if str(repo_root) not in sys.path:\n",+ " sys.path.insert(0, str(repo_root))\n",+ "\n",+ "default_gift_dir = os.path.expanduser(\"~/data/gift_eval\")\n",+ "os.environ[\"GIFT_EVAL\"] = os.getenv(\"GIFT_EVAL\", default_gift_dir)\n",+ "print(f\"GIFT_EVAL data directory: {os.environ['GIFT_EVAL']}\", flush=True)\n",+ "print(f\"PyTorch version: {torch.__version__}, CUDA Available: {torch.cuda.is_available()}\", flush=True)\n",+ "if torch.cuda.is_available():\n",+ " print(f\"Active GPU: {torch.cuda.get_device_name(0)}\", flush=True)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "from gluonts.ev.metrics import (\n",+ " MAE,\n",+ " MAPE,\n",+ " MASE,\n",+ " MSE,\n",+ " MSIS,\n",+ " ND,\n",+ " NRMSE,\n",+ " RMSE,\n",+ " SMAPE,\n",+ " MeanWeightedSumQuantileLoss,\n",+ ")\n",+ "from gluonts.itertools import batcher\n",+ "from gluonts.model import evaluate_model\n",+ "from gluonts.model.forecast import QuantileForecast\n",+ "from gluonts.time_feature import get_seasonality\n",+ "from gift_eval.data import Dataset, Term\n",+ "\n",+ "from timesfm3 import TimesFM3Evaluator, ModelConfig\n",+ "\n",+ "# Standard GIFT-Eval evaluation metrics\n",+ "metrics = [\n",+ " MSE(forecast_type=\"mean\"),\n",+ " MSE(forecast_type=0.5),\n",+ " MAE(),\n",+ " MASE(),\n",+ " MAPE(),\n",+ " SMAPE(),\n",+ " MSIS(),\n",+ " RMSE(),\n",+ " NRMSE(),\n",+ " ND(),\n",+ " MeanWeightedSumQuantileLoss(\n",+ " quantile_levels=[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]\n",+ " ),\n",+ "]"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Initialize TimesFM-3 Evaluator\n",+ "config = ModelConfig(\n",+ " checkpoint_path=os.getenv(\"TIMESFM3_CHECKPOINT\", \"google/timesfm-3.0-pytorch\"),\n",+ " input_patch_length=32,\n",+ " output_patch_length=64,\n",+ " per_core_batch_size=64,\n",+ " use_variate_attention=True,\n",+ " use_sdpa=True,\n",+ ")\n",+ "forecaster = TimesFM3Evaluator(config)\n",+ "print(f\"Successfully loaded TimesFM-3 on: {forecaster.device}\", flush=True)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "class TimesFm3Predictor:\n",+ " \"\"\"GluonTS Predictor wrapper for TimesFM 3.0 with adaptive batching.\"\"\"\n",+ "\n",+ " def __init__(self, forecaster: TimesFM3Evaluator, prediction_length: int, batch_size: int = 64):\n",+ " self.forecaster = forecaster\n",+ " self.prediction_length = prediction_length\n",+ " self.batch_size = batch_size\n",+ " self.quantiles = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]\n",+ "\n",+ " def predict(self, test_data_input, batch_size: int = None) -> List[QuantileForecast]:\n",+ " if batch_size is None:\n",+ " batch_size = self.batch_size\n",+ " self.forecaster.config.per_core_batch_size = batch_size\n",+ "\n",+ " if hasattr(test_data_input, \"__len__\"):\n",+ " inputs_list = test_data_input\n",+ " total_series = len(test_data_input)\n",+ " else:\n",+ " inputs_list = list(test_data_input)\n",+ " total_series = len(inputs_list)\n",+ "\n",+ " total_batches = math.ceil(total_series / batch_size) if total_series > 0 else 0\n",+ " forecasts = []\n",+ " batch_idx = 0\n",+ "\n",+ " for batch in batcher(inputs_list, batch_size=batch_size):\n",+ " contexts = [np.array(entry[\"target\"], dtype=np.float32) for entry in batch]\n",+ " past_covs = [\n",+ " np.array(entry[\"past_feat_dynamic_real\"], dtype=np.float32)\n",+ " if (\"past_feat_dynamic_real\" in entry and entry[\"past_feat_dynamic_real\"] is not None)\n",+ " else None\n",+ " for entry in batch\n",+ " ]\n",+ " outputs = list(\n",+ " self.forecaster.predict_batch(\n",+ " contexts=contexts,\n",+ " horizon=self.prediction_length,\n",+ " past_only_covariates=past_covs,\n",+ " return_quantiles=True,\n",+ " use_symmetric_averaging=True,\n",+ " make_positive=True,\n",+ " sort_quantiles=True,\n",+ " )\n",+ " )\n",+ " for out, entry in zip(outputs, batch):\n",+ " target_len = entry[\"target\"].shape[-1]\n",+ " forecast_start_date = entry[\"start\"] + target_len\n",+ " if out.quantiles.ndim == 3:\n",+ " q_arr = np.transpose(out.quantiles[:, : self.prediction_length, :], (2, 1, 0))\n",+ " else:\n",+ " q_arr = out.quantiles[: self.prediction_length, :].T\n",+ " forecasts.append(\n",+ " QuantileForecast(\n",+ " forecast_arrays=q_arr,\n",+ " forecast_keys=[str(q) for q in self.quantiles],\n",+ " start_date=forecast_start_date,\n",+ " )\n",+ " )\n",+ " batch_idx += 1\n",+ " if batch_idx % 10 == 0 or batch_idx == total_batches or total_batches <= 10:\n",+ " print(f\" [Predictor] Batch {batch_idx}/{total_batches} complete ({len(forecasts)}/{total_series} forecasts generated)...\", flush=True)\n",+ " return forecasts"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Dataset configuration from timesfm2p5.ipynb and evaluate_all_gift.py\n",+ "short_datasets = (\n",+ " \"m4_yearly m4_quarterly m4_monthly m4_weekly m4_daily m4_hourly \"\n",+ " \"electricity/15T electricity/H electricity/D electricity/W \"\n",+ " \"solar/10T solar/H solar/D solar/W hospital covid_deaths \"\n",+ " \"us_births/D us_births/M us_births/W saugeenday/D saugeenday/M saugeenday/W \"\n",+ " \"temperature_rain_with_missing kdd_cup_2018_with_missing/H kdd_cup_2018_with_missing/D \"\n",+ " \"car_parts_with_missing restaurant hierarchical_sales/D hierarchical_sales/W \"\n",+ " \"LOOP_SEATTLE/5T LOOP_SEATTLE/H LOOP_SEATTLE/D SZ_TAXI/15T SZ_TAXI/H \"\n",+ " \"M_DENSE/H M_DENSE/D ett1/15T ett1/H ett1/D ett1/W \"\n",+ " \"ett2/15T ett2/H ett2/D ett2/W jena_weather/10T jena_weather/H jena_weather/D \"\n",+ " \"bitbrains_fast_storage/5T bitbrains_fast_storage/H bitbrains_rnd/5T bitbrains_rnd/H \"\n",+ " \"bizitobs_application bizitobs_service bizitobs_l2c/5T bizitobs_l2c/H\"\n",+ ")\n",+ "\n",+ "med_long_datasets = (\n",+ " \"electricity/15T electricity/H solar/10T solar/H \"\n",+ " \"kdd_cup_2018_with_missing/H LOOP_SEATTLE/5T LOOP_SEATTLE/H SZ_TAXI/15T M_DENSE/H \"\n",+ " \"ett1/15T ett1/H ett2/15T ett2/H jena_weather/10T jena_weather/H \"\n",+ " \"bitbrains_fast_storage/5T bitbrains_rnd/5T bizitobs_application bizitobs_service \"\n",+ " \"bizitobs_l2c/5T bizitobs_l2c/H\"\n",+ ")\n",+ "\n",+ "all_datasets = sorted(list(set(short_datasets.split() + med_long_datasets.split())))\n",+ "\n",+ "# Load metadata properties mapping\n",+ "props_path = repo_root / \"gift-eval/notebooks/dataset_properties.json\"\n",+ "with open(props_path, \"r\") as f:\n",+ " dataset_properties_map = json.load(f)\n",+ "\n",+ "pretty_names = {\n",+ " \"saugeenday\": \"saugeen\",\n",+ " \"temperature_rain_with_missing\": \"temperature_rain\",\n",+ " \"kdd_cup_2018_with_missing\": \"kdd_cup_2018\",\n",+ " \"car_parts_with_missing\": \"car_parts\",\n",+ " \"loop_seattle\": \"loop_seattle\",\n",+ " \"m_dense\": \"m_dense\",\n",+ " \"sz_taxi\": \"sz_taxi\",\n",+ "}"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Model Name & Results Destination\n",+ "model_name = \"TimesFM-3\"\n",+ "results_dir = repo_root / \"results/TimesFM-3_multivariate\"\n",+ "results_dir.mkdir(parents=True, exist_ok=True)\n",+ "csv_file_path = results_dir / \"all_results.csv\"\n",+ "\n",+ "header = [\n",+ " \"dataset\",\n",+ " \"model\",\n",+ " \"eval_metrics/MSE[mean]\",\n",+ " \"eval_metrics/MSE[0.5]\",\n",+ " \"eval_metrics/MAE[0.5]\",\n",+ " \"eval_metrics/MASE[0.5]\",\n",+ " \"eval_metrics/MAPE[0.5]\",\n",+ " \"eval_metrics/sMAPE[0.5]\",\n",+ " \"eval_metrics/MSIS\",\n",+ " \"eval_metrics/RMSE[mean]\",\n",+ " \"eval_metrics/NRMSE[mean]\",\n",+ " \"eval_metrics/ND[0.5]\",\n",+ " \"eval_metrics/mean_weighted_sum_quantile_loss\",\n",+ " \"domain\",\n",+ " \"num_variates\",\n",+ "]\n",+ "\n",+ "# Check existing results for resume support\n",+ "completed_configs = set()\n",+ "if csv_file_path.exists() and csv_file_path.stat().st_size > 0:\n",+ " try:\n",+ " existing_df = pd.read_csv(csv_file_path)\n",+ " completed_configs.update(existing_df[\"dataset\"].dropna().tolist())\n",+ " except Exception:\n",+ " pass\n",+ "\n",+ "if not csv_file_path.exists() or csv_file_path.stat().st_size == 0:\n",+ " with open(csv_file_path, \"w\", newline=\"\") as f:\n",+ " writer = csv.writer(f)\n",+ " writer.writerow(header)\n",+ "\n",+ "print(f\"Resume Status: Found {len(completed_configs)} already completed configurations.\", flush=True)\n",+ "\n",+ "total_configs_run = 0\n",+ "\n",+ "# Iterate through datasets and terms matching timesfm2p5.ipynb and evaluate_all_gift.py\n",+ "for ds_num, ds_name in enumerate(all_datasets):\n",+ " terms = [\"short\", \"medium\", \"long\"]\n",+ " for term in terms:\n",+ " if (term in [\"medium\", \"long\"]) and (ds_name not in med_long_datasets.split()):\n",+ " continue\n",+ "\n",+ " if \"/\" in ds_name:\n",+ " ds_key = ds_name.split(\"/\")[0]\n",+ " ds_freq = ds_name.split(\"/\")[1]\n",+ " ds_key = ds_key.lower()\n",+ " ds_key = pretty_names.get(ds_key, ds_key)\n",+ " else:\n",+ " ds_key = ds_name.lower()\n",+ " ds_key = pretty_names.get(ds_key, ds_key)\n",+ " ds_freq = dataset_properties_map[ds_key][\"frequency\"]\n",+ "\n",+ " ds_config = f\"{ds_key}/{ds_freq}/{term}\"\n",+ " total_configs_run += 1\n",+ "\n",+ " if ds_config in completed_configs:\n",+ " print(f\"[{total_configs_run}/97] Skipping {ds_config} (already completed)\", flush=True)\n",+ " continue\n",+ "\n",+ " domain = dataset_properties_map[ds_key][\"domain\"]\n",+ " num_variates = dataset_properties_map[ds_key][\"num_variates\"]\n",+ " batch_size = 16 if num_variates > 1 else 64\n",+ "\n",+ " print(f\"\\n[{total_configs_run}/97] Evaluating {ds_config} (disk: {ds_name}, batch_size={batch_size}, variates={num_variates})...\", flush=True)\n",+ "\n",+ " try:\n",+ " dataset = Dataset(name=ds_name, term=term, to_univariate=False)\n",+ " seasonality = get_seasonality(dataset.freq)\n",+ " total_series = len(dataset.test_data)\n",+ " total_batches = math.ceil(total_series / batch_size)\n",+ "\n",+ " sample_item = dataset.test_data[0] if hasattr(dataset.test_data, \"__getitem__\") else next(iter(dataset.test_data))\n",+ " sample = sample_item[0] if isinstance(sample_item, tuple) else sample_item\n",+ " tgt_shape = np.array(sample[\"target\"]).shape\n",+ " has_po = \"past_feat_dynamic_real\" in sample and sample[\"past_feat_dynamic_real\"] is not None\n",+ " po_dim = np.array(sample[\"past_feat_dynamic_real\"]).shape[0] if has_po else 0\n",+ "\n",+ " print(\n",+ " f\" -> Dataset Info: Total series/windows={total_series:,} | Targets={num_variates} (shape {tgt_shape}) | \"\n",+ " f\"Past covariates={po_dim} | Total batches={total_batches} (batch_size={batch_size})\",\n",+ " flush=True,\n",+ " )\n",+ "\n",+ " predictor = TimesFm3Predictor(\n",+ " forecaster=forecaster,\n",+ " prediction_length=dataset.prediction_length,\n",+ " batch_size=batch_size,\n",+ " )\n",+ "\n",+ " res = evaluate_model(\n",+ " predictor,\n",+ " test_data=dataset.test_data,\n",+ " metrics=metrics,\n",+ " batch_size=batch_size,\n",+ " axis=None,\n",+ " mask_invalid_label=True,\n",+ " allow_nan_forecast=False,\n",+ " seasonality=seasonality,\n",+ " )\n",+ "\n",+ " row = [\n",+ " ds_config,\n",+ " model_name,\n",+ " res[\"MSE[mean]\"][0],\n",+ " res[\"MSE[0.5]\"][0],\n",+ " res[\"MAE[0.5]\"][0],\n",+ " res[\"MASE[0.5]\"][0],\n",+ " res[\"MAPE[0.5]\"][0],\n",+ " res[\"sMAPE[0.5]\"][0],\n",+ " res[\"MSIS\"][0],\n",+ " res[\"RMSE[mean]\"][0],\n",+ " res[\"NRMSE[mean]\"][0],\n",+ " res[\"ND[0.5]\"][0],\n",+ " res[\"mean_weighted_sum_quantile_loss\"][0],\n",+ " domain,\n",+ " num_variates,\n",+ " ]\n",+ "\n",+ " with open(csv_file_path, \"a\", newline=\"\") as f:\n",+ " writer = csv.writer(f)\n",+ " writer.writerow(row)\n",+ "\n",+ " completed_configs.add(ds_config)\n",+ " print(\n",+ " f\" [{ds_config}] MASE[0.5]: {res['MASE[0.5]'][0]:.4f} | \"\n",+ " f\"CRPS (MWQL): {res['mean_weighted_sum_quantile_loss'][0]:.4f} | \"\n",+ " f\"sMAPE: {res['sMAPE[0.5]'][0]:.4f} | NRMSE: {res['NRMSE[mean]'][0]:.4f}\",\n",+ " flush=True,\n",+ " )\n",+ "\n",+ " except Exception as e:\n",+ " print(f\" -> ERROR on {ds_config}: {e}\", flush=True)\n",+ "\n",+ "print(f\"\\nEvaluation complete! Results saved to: {csv_file_path}\", flush=True)"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "def geomean(vals):\n",+ " arr = np.array(vals, dtype=np.float64)\n",+ " valid = arr[np.isfinite(arr) & (arr > 0)]\n",+ " return float(np.exp(np.mean(np.log(valid)))) if len(valid) > 0 else np.nan\n",+ "\n",+ "df = pd.read_csv(csv_file_path)\n",+ "df = df.drop_duplicates(subset=[\"dataset\"], keep=\"last\")\n",+ "\n",+ "print(\"=\" * 75, flush=True)\n",+ "print(f\"TOTAL EVALUATED CONFIGURATIONS: {len(df)} / 97\", flush=True)\n",+ "print(\"=\" * 75, flush=True)\n",+ "print(f\"Overall Geometric Mean MASE: {geomean(df['eval_metrics/MASE[0.5]']):.6f}\", flush=True)\n",+ "print(f\"Overall Geometric Mean CRPS (MWQL): {geomean(df['eval_metrics/mean_weighted_sum_quantile_loss']):.6f}\", flush=True)\n",+ "print(f\"Overall Geometric Mean sMAPE: {geomean(df['eval_metrics/sMAPE[0.5]']):.6f}\", flush=True)\n",+ "print(f\"Overall Arithmetic Mean MASE: {df['eval_metrics/MASE[0.5]'].mean():.6f}\", flush=True)\n",+ "print(f\"Overall Arithmetic Mean CRPS: {df['eval_metrics/mean_weighted_sum_quantile_loss'].mean():.6f}\", flush=True)\n",+ "print(\"=\" * 75, flush=True)\n",+ "\n",+ "# Domain Breakdown Table\n",+ "domain_summary = df.groupby(\"domain\").agg(\n",+ " count=(\"dataset\", \"count\"),\n",+ " geomean_MASE=(\"eval_metrics/MASE[0.5]\", geomean),\n",+ " geomean_CRPS=(\"eval_metrics/mean_weighted_sum_quantile_loss\", geomean),\n",+ " mean_MASE=(\"eval_metrics/MASE[0.5]\", \"mean\"),\n",+ " mean_CRPS=(\"eval_metrics/mean_weighted_sum_quantile_loss\", \"mean\"),\n",+ " mean_sMAPE=(\"eval_metrics/sMAPE[0.5]\", \"mean\"),\n",+ ").reset_index()\n",+ "\n",+ "print(\"\\n--- Domain Performance Breakdown ---\", flush=True)\n",+ "print(domain_summary.to_string(index=False), flush=True)\n",+ "\n",+ "# Term Breakdown Table\n",+ "df[\"term\"] = df[\"dataset\"].apply(lambda x: x.split(\"/\")[-1])\n",+ "term_summary = df.groupby(\"term\").agg(\n",+ " count=(\"dataset\", \"count\"),\n",+ " geomean_MASE=(\"eval_metrics/MASE[0.5]\", geomean),\n",+ " geomean_CRPS=(\"eval_metrics/mean_weighted_sum_quantile_loss\", geomean),\n",+ " mean_MASE=(\"eval_metrics/MASE[0.5]\", \"mean\"),\n",+ " mean_CRPS=(\"eval_metrics/mean_weighted_sum_quantile_loss\", \"mean\"),\n",+ " mean_sMAPE=(\"eval_metrics/sMAPE[0.5]\", \"mean\"),\n",+ ").reset_index()\n",+ "\n",+ "print(\"\\n--- Term Performance Breakdown ---\", flush=True)\n",+ "print(term_summary.to_string(index=False), flush=True)\n",+ "\n",+ "# Plot Domain Performance\n",+ "fig, axes = plt.subplots(1, 2, figsize=(14, 5))\n",+ "\n",+ "axes[0].bar(domain_summary[\"domain\"], domain_summary[\"geomean_MASE\"], color=\"royalblue\", alpha=0.85, edgecolor=\"black\")\n",+ "axes[0].set_title(\"Geomean MASE by Domain (Lower is Better)\", fontsize=12, fontweight=\"bold\")\n",+ "axes[0].set_ylabel(\"Geomean MASE\")\n",+ "axes[0].tick_params(axis=\"x\", rotation=35)\n",+ "axes[0].grid(True, alpha=0.3, axis=\"y\")\n",+ "\n",+ "axes[1].bar(domain_summary[\"domain\"], domain_summary[\"geomean_CRPS\"], color=\"darkorange\", alpha=0.85, edgecolor=\"black\")\n",+ "axes[1].set_title(\"Geomean CRPS (MWQL) by Domain (Lower is Better)\", fontsize=12, fontweight=\"bold\")\n",+ "axes[1].set_ylabel(\"Geomean CRPS\")\n",+ "axes[1].tick_params(axis=\"x\", rotation=35)\n",+ "axes[1].grid(True, alpha=0.3, axis=\"y\")\n",+ "\n",+ "plt.tight_layout()\n",+ "plt.savefig(results_dir / \"domain_summary.png\", dpi=150)\n",+ "plt.show()"+ ]+ }+ ],+ "metadata": {+ "kernelspec": {+ "display_name": ".venv",+ "language": "python",+ "name": "python3"+ },+ "language_info": {+ "name": "python",+ "version": "3.12.3"+ }+ },+ "nbformat": 4,+ "nbformat_minor": 4+}diff --git a/timesfm3/benchmarks/time_bench/README.md b/timesfm3/benchmarks/time_bench/README.mdnew file mode 100644index 0000000..1258c15--- /dev/null+++ b/timesfm3/benchmarks/time_bench/README.md@@ -0,0 +1,10 @@+# ICML TIME Benchmark++Evaluates TimesFM 3.0 on the ICML TIME benchmark (98 tasks).++## Usage++```bash+pip install -e . datasets gluonts+python run_time_bench.py+```diff --git a/timesfm3/benchmarks/time_bench/run_time_bench.py b/timesfm3/benchmarks/time_bench/run_time_bench.pynew file mode 100644index 0000000..730ab17--- /dev/null+++ b/timesfm3/benchmarks/time_bench/run_time_bench.py@@ -0,0 +1,29 @@+"""Direct runner for executing time_bench_timesfm3.ipynb sequentially."""++import os+import sys+import json+import nbformat+from pathlib import Path++notebook_path = Path(__file__).parent / "time_bench_timesfm3.ipynb"+print(f"Executing TIME benchmark notebook: {notebook_path}", flush=True)++with open(notebook_path, "r", encoding="utf-8") as f:+ nb = nbformat.read(f, as_version=4)++global_ns = {"__name__": "__main__", "__file__": str(notebook_path)}++for idx, cell in enumerate(nb.cells):+ if cell.cell_type == "code":+ code = "".join(cell.source)+ first_line = cell.source[0].strip() if cell.source else ""+ print(f"\n>>> Executing Notebook Cell {idx}: {first_line[:60]}...", flush=True)+ try:+ exec(code, global_ns)+ print(f">>> Cell {idx} completed successfully.", flush=True)+ except Exception as e:+ print(f">>> ERROR executing Cell {idx}: {e}", flush=True)+ raise e++print("\nTIME benchmark notebook execution fully completed!", flush=True)diff --git a/timesfm3/benchmarks/time_bench/time_bench_timesfm3.ipynb b/timesfm3/benchmarks/time_bench/time_bench_timesfm3.ipynbnew file mode 100644index 0000000..3f9a1c8--- /dev/null+++ b/timesfm3/benchmarks/time_bench/time_bench_timesfm3.ipynb@@ -0,0 +1,336 @@+{+ "cells": [+ {+ "cell_type": "markdown",+ "metadata": {},+ "source": [+ "# TimesFM-3: Zero-Shot Evaluation on TIME Benchmark (ICML 2026)\n",+ "\n",+ "This notebook evaluates **TimesFM-3** on the complete **TIME Benchmark** (50 fresh datasets spanning Nature, Energy, Transportation, Healthcare, Finance, Economics, Manufacturing, and Cloud domains) across all horizon regimes (`short`, `medium`, `long`).\n",+ "\n",+ "### Evaluation Configuration:\n",+ "- **Model Name**: `TimesFM-3`\n",+ "- **Architecture**: TimesFM-3 PyTorch with cross-variate attention (`use_variate_attention=True`)\n",+ "- **Mode**: Full native multivariate (`to_univariate=False`), matching the Chronos-2 evaluation setup\n",+ "- **Variate Chunking**: Handled automatically by `TimesFM3Evaluator` for datasets with $> 32$ variates\n",+ "- **Batch Sizing**: Adaptive batch sizing scaled by token volume ($64 / (\\min(32, V) \\cdot L_{\\text{norm}})$) rounded to nearest power of 2, exactly as in `fev_bench`\n",+ "- **Output Results**: Saved to `TimesFM-3_multivariate/time/`\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "import os\n",+ "import sys\n",+ "import math\n",+ "import json\n",+ "import warnings\n",+ "from pathlib import Path\n",+ "from typing import List, Optional, Tuple, Dict, Any\n",+ "\n",+ "import matplotlib.pyplot as plt\n",+ "import numpy as np\n",+ "import pandas as pd\n",+ "import torch\n",+ "from dotenv import load_dotenv\n",+ "from gluonts.time_feature import get_seasonality\n",+ "from huggingface_hub import snapshot_download\n",+ "\n",+ "# Suppress noisy warnings\n",+ "warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",+ "warnings.filterwarnings(\"ignore\", category=RuntimeWarning)\n",+ "warnings.filterwarnings(\"ignore\", category=UserWarning)\n",+ "\n",+ "def find_repo_root():\n",+ " curr = Path.cwd().resolve()\n",+ " for p in [curr] + list(curr.parents):\n",+ " if (p / 'src' / 'timesfm3').exists() or (p / 'pyproject.toml').exists():\n",+ " return p\n",+ " return curr\n",+ "\n",+ "repo_root = find_repo_root()\n",+ "if str(repo_root / \"src\") not in sys.path:\n",+ " sys.path.insert(0, str(repo_root / \"src\"))\n",+ "if str(repo_root) not in sys.path:\n",+ " sys.path.insert(0, str(repo_root))\n",+ "\n",+ "\n",+ "from timesfm3 import TimesFM3Evaluator, ModelConfig\n",+ "from timebench.evaluation.data import Dataset, load_dataset_config, get_dataset_settings\n",+ "from timebench.evaluation.saver import save_window_predictions\n",+ "from timebench.evaluation.utils import get_available_terms\n",+ "\n",+ "print(f\"PyTorch version: {torch.__version__}, CUDA Available: {torch.cuda.is_available()}\", flush=True)\n",+ "if torch.cuda.is_available():\n",+ " print(f\"Active GPU: {torch.cuda.get_device_name(0)}\", flush=True)\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Ensure TIME datasets are available in cache\n",+ "time_cache_dir = Path.home() / \".cache\" / \"TIME_dataset\"\n",+ "time_cache_dir.mkdir(parents=True, exist_ok=True)\n",+ "\n",+ "if not any(time_cache_dir.iterdir()):\n",+ " print(f\"Downloading Real-TSF/TIME datasets to {time_cache_dir}...\", flush=True)\n",+ " snapshot_download(\n",+ " repo_id=\"Real-TSF/TIME\",\n",+ " repo_type=\"dataset\",\n",+ " local_dir=str(time_cache_dir),\n",+ " )\n",+ " print(\"Download completed!\", flush=True)\n",+ "else:\n",+ " print(f\"TIME dataset cache verified at: {time_cache_dir}\", flush=True)\n",+ "\n",+ "# Load benchmark configuration\n",+ "config_path = repo_root / \"TIME/src/timebench/config/datasets.yaml\"\n",+ "bench_config = load_dataset_config(config_path)\n",+ "all_datasets = list(bench_config.get(\"datasets\", {}).keys())\n",+ "print(f\"Loaded {len(all_datasets)} total dataset configurations from datasets.yaml\", flush=True)\n",+ "\n",+ "# Output directory destination\n",+ "output_dir = repo_root / \"TimesFM-3_multivariate/time\"\n",+ "output_dir.mkdir(parents=True, exist_ok=True)\n",+ "print(f\"Results will be saved to: {output_dir}\", flush=True)\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Initialize TimesFM-3 Evaluator\n",+ "forecaster = TimesFM3Evaluator(ModelConfig(\n",+ " checkpoint_path=os.getenv(\"TIMESFM3_CHECKPOINT\", \"google/timesfm-3.0-pytorch\"),\n",+ " per_core_batch_size=64,\n",+ " use_variate_attention=True,\n",+ " use_sdpa=True,\n",+ "))\n",+ "print(f\"TimesFM-3 Evaluator loaded on: {forecaster.device}\", flush=True)\n",+ "\n",+ "def get_optimal_batch_size(\n",+ " max_context_len: int,\n",+ " num_variates: int = 1,\n",+ " min_batch: int = 4,\n",+ " max_batch: int = 64,\n",+ ") -> int:\n",+ " \"\"\"Compute dynamic batch size scaled by total variates (capped at 32 chunk limit) and context length, rounded to nearest power of 2.\"\"\"\n",+ " full_context_count_per_ts = min(32, num_variates) * min(1.0, max(max_context_len, 32) / 15360.0)\n",+ " batch_size = 64.0 / max(full_context_count_per_ts, 0.01)\n",+ " power_of_2 = int(2 ** round(math.log2(batch_size))) if batch_size > 0 else 1\n",+ " return int(np.clip(power_of_2, min_batch, max_batch))\n",+ "\n",+ "def prepare_time_context(item: dict, max_context_length: int = 15360) -> np.ndarray:\n",+ " \"\"\"Extract target array from TIME dataset entry and format as (num_variates, context_len).\"\"\"\n",+ " target = np.asarray(item[\"target\"], dtype=np.float32)\n",+ " if target.ndim == 1:\n",+ " target = target[np.newaxis, :]\n",+ " if target.shape[-1] > max_context_length:\n",+ " target = target[:, -max_context_length:]\n",+ " return target\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Execute Evaluation Across all 50 TIME Datasets\n",+ "quantile_levels = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]\n",+ "max_context_length = 15360\n",+ "min_batch = 4\n",+ "max_batch = 64\n",+ "\n",+ "total_datasets = len(all_datasets)\n",+ "\n",+ "for ds_idx, dataset_name in enumerate(all_datasets, 1):\n",+ " terms = get_available_terms(dataset_name, bench_config)\n",+ " if not terms:\n",+ " continue\n",+ "\n",+ " print(f\"\\n{'='*75}\", flush=True)\n",+ " print(f\"[{ds_idx}/{total_datasets}] Dataset: {dataset_name} | Available Terms: {terms}\", flush=True)\n",+ " print(f\"{'='*75}\", flush=True)\n",+ "\n",+ " for term in terms:\n",+ " ds_config = f\"{dataset_name}/{term}\"\n",+ " target_metrics_path = output_dir / ds_config / \"metrics.npz\"\n",+ "\n",+ " if target_metrics_path.exists() and target_metrics_path.stat().st_size > 0:\n",+ " print(f\" -> Term '{term}': Skipping (already evaluated at {target_metrics_path})\", flush=True)\n",+ " continue\n",+ "\n",+ " try:\n",+ " settings = get_dataset_settings(dataset_name, term, bench_config)\n",+ " prediction_length = settings.get(\"prediction_length\")\n",+ " test_length = settings.get(\"test_length\")\n",+ " val_length = settings.get(\"val_length\", 0)\n",+ "\n",+ " dataset = Dataset(\n",+ " name=dataset_name,\n",+ " term=term,\n",+ " to_univariate=False, # Full native multivariate\n",+ " prediction_length=prediction_length,\n",+ " test_length=test_length,\n",+ " val_length=val_length,\n",+ " storage_path=time_cache_dir,\n",+ " )\n",+ "\n",+ " eval_data = dataset.test_data\n",+ " eval_input_list = list(eval_data.input)\n",+ " total_items = len(eval_input_list)\n",+ " num_variates = dataset.target_dim\n",+ " season_length = get_seasonality(dataset.freq)\n",+ "\n",+ " # Calculate optimal dynamic batch size matching fev_bench\n",+ " max_ctx_in_task = max((np.asarray(inp[\"target\"]).shape[-1] for inp in eval_input_list), default=32)\n",+ " dynamic_batch_size = get_optimal_batch_size(\n",+ " max_context_len=max_ctx_in_task,\n",+ " num_variates=num_variates,\n",+ " min_batch=min_batch,\n",+ " max_batch=max_batch,\n",+ " )\n",+ " total_batches = math.ceil(total_items / dynamic_batch_size)\n",+ "\n",+ " print(f\" -> Term '{term}': Horizon={prediction_length}, Windows={dataset.windows}, Total Items={total_items}, Variates={num_variates} | Batch Size={dynamic_batch_size}, Total Batches={total_batches}\", flush=True)\n",+ "\n",+ " fc_quantiles_batches = []\n",+ "\n",+ " for b_start in range(0, total_items, dynamic_batch_size):\n",+ " b_end = min(b_start + dynamic_batch_size, total_items)\n",+ " batch_contexts = [prepare_time_context(eval_input_list[i], max_context_length=max_context_length) for i in range(b_start, b_end)]\n",+ "\n",+ " batch_outs = list(forecaster.predict_batch(\n",+ " contexts=batch_contexts,\n",+ " horizon=prediction_length,\n",+ " return_quantiles=True,\n",+ " use_symmetric_averaging=True,\n",+ " make_positive=True,\n",+ " sort_quantiles=True,\n",+ " ))\n",+ "\n",+ " batch_q_list = []\n",+ " for out in batch_outs:\n",+ " # out.quantiles shape: (num_variates, prediction_length, num_quantiles)\n",+ " # Permute to expected TIME shape: (num_quantiles, num_variates, prediction_length)\n",+ " q = out.quantiles.transpose(2, 0, 1)\n",+ " batch_q_list.append(q[np.newaxis, ...])\n",+ "\n",+ " batch_q_arr = np.concatenate(batch_q_list, axis=0)\n",+ " fc_quantiles_batches.append(batch_q_arr)\n",+ "\n",+ " current_batch_idx = (b_start // dynamic_batch_size) + 1\n",+ " print(f\" Batch [{current_batch_idx}/{total_batches}] ({len(batch_contexts)} series) completed\", flush=True)\n",+ "\n",+ " if torch.cuda.is_available():\n",+ " torch.cuda.synchronize()\n",+ "\n",+ " fc_quantiles = np.concatenate(fc_quantiles_batches, axis=0)\n",+ "\n",+ " model_hyperparams = {\n",+ " \"model\": \"TimesFM-3\",\n",+ " \"context_length\": max_context_length,\n",+ " \"quantile_levels\": quantile_levels,\n",+ " \"use_variate_attention\": True,\n",+ " }\n",+ "\n",+ " metadata = save_window_predictions(\n",+ " dataset=dataset,\n",+ " fc_quantiles=fc_quantiles,\n",+ " ds_config=ds_config,\n",+ " output_base_dir=str(output_dir),\n",+ " seasonality=season_length,\n",+ " model_hyperparams=model_hyperparams,\n",+ " quantile_levels=quantile_levels,\n",+ " )\n",+ " print(f\" [Saved] {ds_config} -> {output_dir / ds_config}\", flush=True)\n",+ "\n",+ " except Exception as e:\n",+ " print(f\" ERROR on {ds_config}: {e}\", flush=True)\n",+ "\n",+ "print(f\"\\nAll TIME Benchmark evaluations completed! Results saved to: {output_dir}\", flush=True)\n"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "metadata": {},+ "outputs": [],+ "source": [+ "# Aggregation and Leaderboard Computation\n",+ "print(\"=\" * 75, flush=True)\n",+ "print(\"COMPUTING TIME BENCHMARK SUMMARY & LEADERBOARD METRICS\", flush=True)\n",+ "print(\"=\" * 75, flush=True)\n",+ "\n",+ "results_list = []\n",+ "\n",+ "for dataset_name in all_datasets:\n",+ " terms = get_available_terms(dataset_name, bench_config)\n",+ " for term in terms:\n",+ " ds_config = f\"{dataset_name}/{term}\"\n",+ " metrics_path = output_dir / ds_config / \"metrics.npz\"\n",+ " config_json_path = output_dir / ds_config / \"config.json\"\n",+ "\n",+ " if metrics_path.exists() and config_json_path.exists():\n",+ " try:\n",+ " metrics = np.load(metrics_path)\n",+ " with open(config_json_path, \"r\") as f:\n",+ " cfg = json.load(f)\n",+ "\n",+ " row = {\n",+ " \"dataset\": dataset_name,\n",+ " \"term\": term,\n",+ " \"config\": ds_config,\n",+ " \"MASE\": float(np.nanmean(metrics[\"mase\"])),\n",+ " \"CRPS\": float(np.nanmean(metrics[\"crps\"])),\n",+ " \"WAPE\": float(np.nanmean(metrics.get(\"wape\", np.nan))),\n",+ " \"MSE\": float(np.nanmean(metrics[\"mse\"])),\n",+ " \"MAE\": float(np.nanmean(metrics[\"mae\"])),\n",+ " \"RMSE\": float(np.nanmean(metrics[\"rmse\"])),\n",+ " \"num_series\": cfg.get(\"num_series\", 1),\n",+ " \"windows\": cfg.get(\"windows\", 1),\n",+ " \"prediction_length\": cfg.get(\"prediction_length\", 1),\n",+ " }\n",+ " results_list.append(row)\n",+ " except Exception as e:\n",+ " pass\n",+ "\n",+ "if results_list:\n",+ " summary_df = pd.DataFrame(results_list)\n",+ " csv_summary_path = output_dir / \"timesfm3_time_bench_summary.csv\"\n",+ " summary_df.to_csv(csv_summary_path, index=False)\n",+ " print(f\"\\nEvaluated Tasks: {len(summary_df)}\", flush=True)\n",+ " print(f\"Overall Average MASE: {summary_df['MASE'].mean():.4f}\", flush=True)\n",+ " print(f\"Overall Average CRPS: {summary_df['CRPS'].mean():.4f}\", flush=True)\n",+ " print(f\"Overall Average WAPE: {summary_df['WAPE'].mean():.4f}\", flush=True)\n",+ " print(f\"Summary CSV saved to: {csv_summary_path}\", flush=True)\n",+ " print(\"\\n--- First 15 Task Results ---\", flush=True)\n",+ " print(summary_df[[\"dataset\", \"term\", \"MASE\", \"CRPS\", \"WAPE\", \"RMSE\"]].head(15).to_string(index=False), flush=True)\n",+ "else:\n",+ " print(\"No evaluated task metrics found yet.\", flush=True)\n"+ ]+ }+ ],+ "metadata": {+ "kernelspec": {+ "display_name": "Python 3",+ "language": "python",+ "name": "python3"+ },+ "language_info": {+ "name": "python",+ "version": "3.12"+ }+ },+ "nbformat": 4,+ "nbformat_minor": 4+}diff --git a/timesfm-forecasting/notebooks/promotion_and_synthetic_parity_demo.ipynb b/timesfm3/notebooks/promotion_and_synthetic_parity_demo.ipynbsimilarity index 100%rename from timesfm-forecasting/notebooks/promotion_and_synthetic_parity_demo.ipynbrename to timesfm3/notebooks/promotion_and_synthetic_parity_demo.ipynb