Skip to content

Commit

Permalink
remove option for sample output type from linear_pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions CI committed Aug 4, 2023
1 parent 0a00b72 commit a62ae4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/linear_pool.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' Compute ensemble model outputs as a linear pool, otherwise known as a
#' distributional mixture, of component model outputs for
#' each combination of model task, output type, and output type id. Supported
#' output types include `mean`, `quantile`, `cdf`, `pmf`, and `sample`.
#' output types include `mean`, `quantile`, `cdf`, and `pmf`.
#'
#' @param model_outputs an object of class `model_output_df` with component
#' model outputs (e.g., predictions).
Expand Down Expand Up @@ -50,7 +50,7 @@ linear_pool <- function(model_outputs, weights = NULL,
...) {

# validate_ensemble_inputs
valid_types <- c("mean", "quantile", "cdf", "pmf", "sample")
valid_types <- c("mean", "quantile", "cdf", "pmf")
validated_inputs <- validate_ensemble_inputs(model_outputs, weights=weights,
weights_col_name = weights_col_name,
task_id_cols = task_id_cols,
Expand All @@ -71,8 +71,6 @@ linear_pool <- function(model_outputs, weights = NULL,
agg_fun = "mean", agg_args = list(),
model_id = model_id,
task_id_cols = task_id_cols_validated)
} else if (type == "sample") {
# to be written
} else if (type == "quantile"){
linear_pool_quantile(split_outputs, weights = weights_validated,
weights_col_name = weights_col_name,
Expand Down

0 comments on commit a62ae4b

Please sign in to comment.