Skip to content

Commit 7d29b59

Browse files
committed
fix docs, forecaster_pred->slide_forecaster
1 parent 01b5e04 commit 7d29b59

18 files changed

+39
-104
lines changed

NAMESPACE

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export(evaluate_predictions)
1515
export(extend_ahead)
1616
export(flatline_fc)
1717
export(forecaster_lookup)
18-
export(forecaster_pred)
1918
export(format_storage)
2019
export(id_ahead_ensemble_grid)
2120
export(interval_coverage)
@@ -28,7 +27,6 @@ export(make_shared_ensembles)
2827
export(make_shared_grids)
2928
export(make_target_ensemble_grid)
3029
export(make_target_param_grid)
31-
export(manage_S3_forecast_cache)
3230
export(overprediction)
3331
export(perform_sanity_checks)
3432
export(read_external_predictions_data)
@@ -37,11 +35,10 @@ export(run_workflow_and_format)
3735
export(scaled_pop)
3836
export(sharpness)
3937
export(single_id)
38+
export(slide_forecaster)
4039
export(underprediction)
4140
export(weighted_interval_score)
4241
importFrom(assertthat,assert_that)
43-
importFrom(aws.s3,get_bucket)
44-
importFrom(aws.s3,s3sync)
4542
importFrom(cli,cli_abort)
4643
importFrom(cli,hash_animal)
4744
importFrom(dplyr,across)
@@ -85,7 +82,6 @@ importFrom(epipredict,step_population_scaling)
8582
importFrom(epipredict,step_training_window)
8683
importFrom(epiprocess,as_epi_df)
8784
importFrom(epiprocess,epix_slide)
88-
importFrom(here,here)
8985
importFrom(magrittr,"%<>%")
9086
importFrom(magrittr,"%>%")
9187
importFrom(purrr,imap)

R/data_validation.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ perform_sanity_checks <- function(epi_data,
4646
#' to be able to return a null result rather than error out.
4747
#' @param epi_data the input data
4848
#' @param ahead the effective ahead; may be infinite if there isn't enough data.
49-
#' @param args_input the input as supplied to `forecaster_pred`; lags is the
49+
#' @param args_input the input as supplied to `slide_forecaster`; lags is the
5050
#' important argument, which may or may not be defined, with the default
5151
#' coming from `arx_args_list`
5252
#' @param buffer how many training data to insist on having (e.g. if `buffer=1`,

R/looping.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#' @importFrom cli cli_abort
2828
#' @importFrom rlang !!
2929
#' @export
30-
forecaster_pred <- function(data,
30+
slide_forecaster <- function(data,
3131
outcome,
3232
extra_sources = "",
3333
forecaster = scaled_pop,
@@ -43,7 +43,7 @@ forecaster_pred <- function(data,
4343
if (is.null(forecaster_args$ahead)) {
4444
cli_abort(
4545
c(
46-
"exploration-tooling error: forecaster_pred needs some value for ahead."
46+
"exploration-tooling error: slide_forecaster needs some value for ahead."
4747
),
4848
class = "explorationToolingError"
4949
)
@@ -95,7 +95,7 @@ forecaster_pred <- function(data,
9595
forecaster_args = forecaster_args,
9696
e = e
9797
)
98-
saveRDS(dump_vars, "forecaster_pred_error.rds")
98+
saveRDS(dump_vars, "slide_forecaster_error.rds")
9999
e
100100
}
101101
}

R/targets_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ make_forecasts_and_scores_by_ahead <- function() {
185185
tar_target_raw(
186186
name = ONE_AHEAD_FORECAST_NAME,
187187
command = expression(
188-
forecaster_pred(
188+
slide_forecaster(
189189
data = joined_archive_data_2022,
190190
outcome = "hhs",
191191
extra_sources = "",

forecaster_testing.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ constant <- as_epi_archive(tibble(
7070
a = synth_mean
7171
))
7272

73-
forecaster_pred(
73+
slide_forecaster(
7474
data = constant,
7575
outcome = "hhs",
7676
extra_sources = "",
@@ -187,7 +187,7 @@ forecasts_and_scores <- tar_map(
187187
tar_target(
188188
name = forecast,
189189
command = {
190-
forecaster_pred(
190+
slide_forecaster(
191191
data = joined_archive_data_2022,
192192
outcome = "hhs",
193193
extra_sources = "",

man/arx_postprocess.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/arx_preprocess.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/confirm_sufficient_data.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/forecaster_pred.Rd

Lines changed: 0 additions & 53 deletions
This file was deleted.

man/lists_of_real_values.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)