TSDBench / METR-LA /tasks /general_task.yaml
MaxKJC's picture
Upload folder using huggingface_hub
0a665df verified
Raw History Blame Contribute Delete
2.97 kB
# ============================================================
# METR-LA/tasks/general_task.yaml
# ============================================================
# Purpose:
# - This file contains only processing rules shared by all tasks and naming conventions.
# Recommended reading order for each task.yaml:
# 1) Start with sample in each task.yaml: what constitutes one sample.
# 2) Read inputs: what the model can access at inference time.
# 3) Read prediction: what the model should predict.
# 4) Finally, read leakage: which columns must be excluded from model inputs.
# ============================================================
general_defaults:
# ------------------------------------------------------------
# Default input processing rules.
# Note: these are processing defaults, not input field defaults.
# These rules specify how to process time series, tabular, or graph inputs when a task uses them,
# but do not automatically add any input fields to a task.
# ------------------------------------------------------------
input_processing:
tabular_static:
# Unique identifier column for METR-LA sensors.
# This column is used only to join labels, splits, and metadata.
id_column: episode_id
time_series:
# METR-LA historical traffic speed data typically uses timestamp as the time axis and sensor episode_id values as columns.
timestamp_column: timestamp
id_column: episode_id
timezone: America/Los_Angeles
sampling:
# METR-LA raw historical traffic speed data typically has a 5-minute resolution.
native_rate: 5min
# By default, the task resolution matches the native resolution.
task_rate: 5min
# Use this aggregation method when task_rate is coarser than native_rate, for example 5min -> 15min.
downsample_method: mean
# Use this interpolation method when task_rate is finer than native_rate. This task configuration is generally not recommended.
upsample_method: ffill
graph:
# Graph inputs are static by default, for example METR-LA's road_network.
directed: false
weighted: true
# ------------------------------------------------------------
# Standard split names.
# Use these standard values in splits.csv to avoid mixing train/val/valid/dev.
# ------------------------------------------------------------
split_names:
train: train
validation: validation
test: test
# ------------------------------------------------------------
# Inheritance rules.
# A task can set inherit_general: true to inherit this file's processing defaults.
# Note: inheritance only affects default rules such as input_processing / columns / split_names,
# and does not automatically inherit any specific input fields.
# ------------------------------------------------------------
inheritance:
default_inherit_general: true
merge_strategy: recursive_override