Skip to content

Commit 19f0ef0

Browse files
authored
Fix task schema formatting (#818)
1 parent ad9a616 commit 19f0ef0

File tree

1 file changed

+55
-1
lines changed

1 file changed

+55
-1
lines changed

hub-config/tasks.json

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"target": {
2727
"required": null,
28-
"optional": ["wk inc covid hosp", "wk inc covid prop ed visits"]
28+
"optional": ["wk inc covid hosp"]
2929
}
3030
},
3131
"output_type": {
@@ -68,7 +68,61 @@
6868
"target_type": "continuous",
6969
"is_step_ahead": true,
7070
"time_unit": "week"
71+
}
72+
]
73+
},
74+
{
75+
"task_ids": {
76+
"reference_date": {
77+
"required": null,
78+
"optional": ["2024-11-16", "2024-11-23", "2024-11-30", "2024-12-07", "2024-12-14", "2024-12-21", "2024-12-28", "2025-01-04", "2025-01-11", "2025-01-18", "2025-01-25", "2025-02-01", "2025-02-08", "2025-02-15", "2025-02-22", "2025-03-01", "2025-03-08", "2025-03-15", "2025-03-22", "2025-03-29", "2025-04-05", "2025-04-12", "2025-04-19", "2025-04-26", "2025-05-03", "2025-05-10", "2025-05-17", "2025-05-24", "2025-05-31", "2025-06-07", "2025-06-14", "2025-06-21", "2025-06-28", "2025-07-05", "2025-07-12", "2025-07-19", "2025-07-26", "2025-08-02", "2025-08-09", "2025-08-16", "2025-08-23", "2025-08-30", "2025-09-06", "2025-09-13", "2025-09-20", "2025-09-27"]
79+
},
80+
"location": {
81+
"required": null,
82+
"optional": ["US", "01", "02", "04", "05", "06", "08", "09", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "44", "45", "46", "47", "48", "49", "50", "51", "53", "54", "55", "56", "72"]
83+
},
84+
"horizon": {
85+
"required": null,
86+
"optional": [-1, 0, 1, 2, 3]
7187
},
88+
"target_end_date": {
89+
"required": null,
90+
"optional": ["2024-11-09", "2024-11-16", "2024-11-23", "2024-11-30", "2024-12-07", "2024-12-14", "2024-12-21", "2024-12-28", "2025-01-04", "2025-01-11", "2025-01-18", "2025-01-25", "2025-02-01", "2025-02-08", "2025-02-15", "2025-02-22", "2025-03-01", "2025-03-08", "2025-03-15", "2025-03-22", "2025-03-29", "2025-04-05", "2025-04-12", "2025-04-19", "2025-04-26", "2025-05-03", "2025-05-10", "2025-05-17", "2025-05-24", "2025-05-31", "2025-06-07", "2025-06-14", "2025-06-21", "2025-06-28", "2025-07-05", "2025-07-12", "2025-07-19", "2025-07-26", "2025-08-02", "2025-08-09", "2025-08-16", "2025-08-23", "2025-08-30", "2025-09-06", "2025-09-13", "2025-09-20", "2025-09-27", "2025-10-04", "2025-10-11", "2025-10-18"]
91+
},
92+
"target": {
93+
"required": null,
94+
"optional": ["wk inc covid prop ed visits"]
95+
}
96+
},
97+
"output_type": {
98+
"quantile": {
99+
"output_type_id": {
100+
"required": [0.01, 0.025, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 0.975, 0.99]
101+
},
102+
"is_required": false,
103+
"value": {
104+
"type": "double",
105+
"minimum": 0
106+
}
107+
},
108+
"sample": {
109+
"output_type_id_params": {
110+
"type": "character",
111+
"max_length": 15,
112+
"min_samples_per_task": 200,
113+
"max_samples_per_task": 200,
114+
"compound_taskid_set": [
115+
"location"
116+
]
117+
},
118+
"is_required": true,
119+
"value": {
120+
"type": "double",
121+
"minimum": 0
122+
}
123+
}
124+
},
125+
"target_metadata": [
72126
{
73127
"target_id": "wk inc covid prop ed visits",
74128
"target_name": "proportion of weekly incident ED visits due to COVID-19",

0 commit comments

Comments
 (0)