Skip to content

Commit 995be7b

Browse files
committed
fix: tweaks for prod
* update exclusions and subs * fix geo_values == c() bug * fix timezone issues
1 parent 070e8bd commit 995be7b

File tree

8 files changed

+41
-6
lines changed

8 files changed

+41
-6
lines changed

covid_data_substitutions.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ geo_value, forecast_date, time_value, value
22
nh, 2025-01-15, 2025-01-11, 150
33
dc, 2025-02-19, 2025-02-15, 18
44
ga, 2025-02-19, 2025-02-15, 210
5+
sd, 2025-03-05, 2025-02-26, 35

covid_geo_exclusions.csv

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,27 @@ forecast_date,forecaster,geo_value,weight
33
# defaults
44
##################
55
2024-10-01, all, mp, 0
6-
2024-10-01, windowed_seasonal, all, 0
6+
2024-10-01, windowed_seasonal, all, 0.0001
77
2024-10-01, windowed_seasonal_extra_sources, all, 3
8-
2024-10-01, climate_linear, all, 3
8+
2024-10-01, climate_linear, all, 0.0001
99
2024-10-01, linear, all, 3
1010
2024-10-01, linearlog, all, 0
1111
2024-10-01, climate_base, all, 2
1212
2024-10-01, climate_geo_agged, all, 0.5
1313
2024-10-01, climate_quantile_extrapolated, all, 0
1414
##################
15+
# March 5th
16+
##################
17+
2025-03-05, all, mp, 0
18+
2025-03-05, windowed_seasonal, all, 0.0001
19+
2025-03-05, windowed_seasonal_extra_sources, all, 3
20+
2025-03-05, climate_linear, all, 0.0001
21+
2025-03-05, linear, all, 3
22+
2025-03-05, linearlog, all, 0
23+
2025-03-05, climate_base, all, 2
24+
2025-03-05, climate_geo_agged, all, 0.5
25+
2025-03-05, climate_quantile_extrapolated, all, 0
26+
##################
1527
# Feb 26
1628
##################
1729
2025-02-26, all, mp, 0

flu_data_substitutions.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ nm, 2025-02-19, 2025-02-12, 170
1414
ok, 2025-02-19, 2025-02-12, 600
1515
dc, 2025-02-26, 2025-02-12, 160
1616
dc, 2025-02-26, 2025-02-19, 130
17+
dc, 2025-03-05, 2025-02-12, 160
18+
dc, 2025-03-05, 2025-02-19, 130
19+
hi, 2025-03-05, 2025-02-26, 70

flu_geo_exclusions.csv

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ forecast_date,forecaster,geo_value,weight
1212
2024-10-01, climate_geo_agged, all, 0.25
1313
2024-10-01, climate_quantile_extrapolated, all, 0
1414
##################
15+
# March 5th
16+
##################
17+
2025-03-05, all, mp, 0
18+
2025-03-05, windowed_seasonal, all, 3
19+
2025-03-05, windowed_seasonal_extra_sources, all, 3
20+
2025-03-05, climate_linear, all, 3
21+
2025-03-05, linear, all, 2
22+
2025-03-05, linearlog, all, 0
23+
2025-03-05, climate_base, all, 0.5
24+
2025-03-05, climate_geo_agged, all, 0.25
25+
2025-03-05, climate_quantile_extrapolated, all, 0
26+
##################
1527
# Feb 26
1628
##################
1729
2025-02-26, all, mp, 0

reports/template.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ Simplistic/low data methods:
2727
- [Flu flatline](flu-notebook-flatline.html)
2828
- [Flu climate](flu-notebook-climate_linear.html)
2929

30-
### Covid
30+
### Covid (new)
31+
32+
- [Covid AR with population scaling](covid-notebook-scaled_pop_main.html)
33+
- [Covid AR with population scaling and seasonal features](covid-notebook-scaled_pop_season.html)
34+
- [Covid AR with population scaling, and exogenous features](covid-notebook-scaled_pop_exogenous.html)
35+
- [Covid Flatline](covid-notebook-flatline_forecaster.html)
36+
37+
### Covid (old)
3138

3239
- [Covid AR with population scaling](covid-notebook-1.html)
3340
- [Covid AR with population scaling and smoothed features](covid-notebook-2.html)

scripts/build_nhsn_archive.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ options(readr.show_col_types = FALSE)
3737

3838
# Script run time
3939
run_time <- with_tz(Sys.time(), tzone = "UTC")
40-
run_time_local <- with_tz(run_time, tzone = "America/New_York")
40+
run_time_local <- with_tz(run_time)
4141

4242
# Configuration
4343
config <- list(

scripts/covid_hosp_prod.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ forecaster_fns <- list2(
8686
) %>%
8787
mutate(target_end_date = target_end_date + 3) %>%
8888
# Wyoming has no data for NSSP since July 2024
89-
filter(geo_value != c("mo", "usa", "wy"))
89+
filter(geo_value %nin% c("mo", "usa", "wy"))
9090
fcst
9191
}
9292
)

scripts/flu_hosp_prod.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ forecaster_fns <- list2(
9898
) %>%
9999
select(-source) %>%
100100
mutate(target_end_date = target_end_date + 3) %>%
101-
filter(geo_value != c("mo", "us", "wy"))
101+
filter(geo_value %nin% c("mo", "us", "wy"))
102102
fcst
103103
}
104104
)

0 commit comments

Comments
 (0)