Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,50 +1,102 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
configs:
|
| 4 |
-
- config_name: default
|
| 5 |
-
data_files:
|
| 6 |
-
- split: test
|
| 7 |
-
path: data/test-*
|
| 8 |
-
dataset_info:
|
| 9 |
-
features:
|
| 10 |
-
- name: name
|
| 11 |
-
dtype: string
|
| 12 |
-
- name: seed
|
| 13 |
-
dtype: int64
|
| 14 |
-
- name: weight
|
| 15 |
-
dtype: string
|
| 16 |
-
- name: context_sources
|
| 17 |
-
sequence: string
|
| 18 |
-
- name: skills
|
| 19 |
-
sequence: string
|
| 20 |
-
- name: background
|
| 21 |
-
dtype: string
|
| 22 |
-
- name: scenario
|
| 23 |
-
dtype: string
|
| 24 |
-
- name: constraints
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: seasonal_period
|
| 27 |
-
dtype: int64
|
| 28 |
-
- name: past_time
|
| 29 |
-
dtype: string
|
| 30 |
-
- name: future_time
|
| 31 |
-
dtype: string
|
| 32 |
-
- name: metric_scaling
|
| 33 |
-
dtype: float64
|
| 34 |
-
- name: region_of_interest
|
| 35 |
-
sequence: int64
|
| 36 |
-
- name: constraint_min
|
| 37 |
-
dtype: float64
|
| 38 |
-
- name: constraint_max
|
| 39 |
-
dtype: float64
|
| 40 |
-
- name: constraint_variable_max_index
|
| 41 |
-
sequence: int64
|
| 42 |
-
- name: constraint_variable_max_values
|
| 43 |
-
sequence: float64
|
| 44 |
-
splits:
|
| 45 |
-
- name: test
|
| 46 |
-
num_bytes: 1513530
|
| 47 |
-
num_examples: 355
|
| 48 |
-
download_size: 213493
|
| 49 |
-
dataset_size: 1513530
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
configs:
|
| 4 |
+
- config_name: default
|
| 5 |
+
data_files:
|
| 6 |
+
- split: test
|
| 7 |
+
path: data/test-*
|
| 8 |
+
dataset_info:
|
| 9 |
+
features:
|
| 10 |
+
- name: name
|
| 11 |
+
dtype: string
|
| 12 |
+
- name: seed
|
| 13 |
+
dtype: int64
|
| 14 |
+
- name: weight
|
| 15 |
+
dtype: string
|
| 16 |
+
- name: context_sources
|
| 17 |
+
sequence: string
|
| 18 |
+
- name: skills
|
| 19 |
+
sequence: string
|
| 20 |
+
- name: background
|
| 21 |
+
dtype: string
|
| 22 |
+
- name: scenario
|
| 23 |
+
dtype: string
|
| 24 |
+
- name: constraints
|
| 25 |
+
dtype: string
|
| 26 |
+
- name: seasonal_period
|
| 27 |
+
dtype: int64
|
| 28 |
+
- name: past_time
|
| 29 |
+
dtype: string
|
| 30 |
+
- name: future_time
|
| 31 |
+
dtype: string
|
| 32 |
+
- name: metric_scaling
|
| 33 |
+
dtype: float64
|
| 34 |
+
- name: region_of_interest
|
| 35 |
+
sequence: int64
|
| 36 |
+
- name: constraint_min
|
| 37 |
+
dtype: float64
|
| 38 |
+
- name: constraint_max
|
| 39 |
+
dtype: float64
|
| 40 |
+
- name: constraint_variable_max_index
|
| 41 |
+
sequence: int64
|
| 42 |
+
- name: constraint_variable_max_values
|
| 43 |
+
sequence: float64
|
| 44 |
+
splits:
|
| 45 |
+
- name: test
|
| 46 |
+
num_bytes: 1513530
|
| 47 |
+
num_examples: 355
|
| 48 |
+
download_size: 213493
|
| 49 |
+
dataset_size: 1513530
|
| 50 |
+
task_categories:
|
| 51 |
+
- time-series-forecasting
|
| 52 |
+
language:
|
| 53 |
+
- en
|
| 54 |
+
pretty_name: Context is Key
|
| 55 |
+
size_categories:
|
| 56 |
+
- n<1K
|
| 57 |
+
---
|
| 58 |
+
# Context is Key dataset
|
| 59 |
+
|
| 60 |
+
This dataset contains the samples from the [Context is Key benchmark](https://arxiv.org/abs/2410.18959).
|
| 61 |
+
|
| 62 |
+
While we encourage users of the benchmark to instance it using its [Code repository](https://github.com/ServiceNow/context-is-key-forecasting),
|
| 63 |
+
we understand that using this dataset can be more convenient.
|
| 64 |
+
|
| 65 |
+
## Splits
|
| 66 |
+
|
| 67 |
+
Context is Key is meant to be used as a benchmark, with only a test split.
|
| 68 |
+
Therefore, the splits in this dataset have been used to represent versions of the dataset, from correcting minor errors found after its initial release.
|
| 69 |
+
|
| 70 |
+
* **test**: The latest version of the dataset.
|
| 71 |
+
* **ICML2025**: The version of the dataset used for the experiments whose results have been published to ICML 2025.
|
| 72 |
+
|
| 73 |
+
The differences between **test** and **ICML2025** are in the `FullCausalContextImplicitEquationBivarLinSVAR` and `FullCausalContextExplicitEquationBivarLinSVAR` tasks,
|
| 74 |
+
where the context contained unscaled numbers in **ICML2025** and scaled numbers in **test**.
|
| 75 |
+
|
| 76 |
+
## Features
|
| 77 |
+
|
| 78 |
+
| Feature | Content |
|
| 79 |
+
| -------- | ------- |
|
| 80 |
+
| name | The name of the task, also the name of the class generating the task in the [code](https://github.com/ServiceNow/context-is-key-forecasting) |
|
| 81 |
+
| seed | An integer between 1 and 5, to distinguish various instances of the same task |
|
| 82 |
+
| weight | A fraction indicating the relative weight this task has in aggregated RCRPS results |
|
| 83 |
+
| context_sources | A list of strings indicating whether the context contains past, future, causal, ... information |
|
| 84 |
+
| skills | A list of strings indicating skills which should help models accurately solve the task |
|
| 85 |
+
| background | Part of the textual context (mostly the part which doesn't depend on the instance) |
|
| 86 |
+
| scenario | Part of the textual context (mostly the part which does depend on the instance) |
|
| 87 |
+
| constraints | Part of the textual context (explicit constraints on valid forecasts) |
|
| 88 |
+
| seasonal_period | A reasonable guess on the seasonal period of the time series, for models which requires it. -1 if there is seasonal periodicity. |
|
| 89 |
+
| past_time | Pandas DataFrame converted to JSON containing the historical portion of the time series |
|
| 90 |
+
| future_time | Pandas DataFrame converted to JSON containing the portion of the time series to be forecasted |
|
| 91 |
+
| metric_scaling | Multiplier of the RCPRS metric, to handle the changes in scales between tasks |
|
| 92 |
+
| region_of_interest | List of indices of the future_time which should have more weight in the RCPRS metric |
|
| 93 |
+
| constraint_min | Any forecasted values below this value will be penalized in the RCPRS metric |
|
| 94 |
+
| constraint_max | Any forecasted values above this value will be penalized in the RCPRS metric |
|
| 95 |
+
| constraint_variable_max_index | A list of indices for which there is a maximum constraint |
|
| 96 |
+
| constraint_variable_max_values | A list of maximum values, any forecasted values at the associated indices will lead to a penalty in the RCPRS metric |
|
| 97 |
+
|
| 98 |
+
Users of the benchmark should only gives the *background*, *scenario*, *constraints*, *seasonal_period*, and *past_time* features to their model,
|
| 99 |
+
together with the timestamps of *future_time*.
|
| 100 |
+
The other features are there to compute the RCPRS metric and classification of the tasks.
|
| 101 |
+
|
| 102 |
+
Note: to convert *past_time* and *future_time* to Pandas DataFrame, use the following snipet: `pd.read_json(StringIO(entry["past_time"]))`.
|