Skip to content

Commit

Permalink
Fixes #342
Browse files Browse the repository at this point in the history
  • Loading branch information
spsanderson committed Jul 28, 2022
1 parent 9065a79 commit 417434b
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 6 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export(ts_auto_xgboost)
export(ts_calendar_heatmap_plot)
export(ts_compare_data)
export(ts_event_analysis_plot)
export(ts_extract_auto_fitted_workflow)
export(ts_feature_cluster)
export(ts_feature_cluster_plot)
export(ts_forecast_simulator)
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# healthyR.ts (development version)

## Breakingn Changes
## Breaking Changes
None

## New Features
Expand All @@ -9,6 +9,9 @@ out the fitted workflow from any of the Boilerplate functions.

## Minor Fixes and Improvements
1. Fix #343 - Add attributes to output list of boilerplate functions.
2. Fix #347 - Fix `ts_auto_lm()` by dropping `step_rm()` and `step_corr()` which
would prevent `calibrate_and_plot()` from working due to `modeltime_calibration()`
failing. Also dropped unused parameters from function and documentation.

# healthyR.ts 0.2.1

Expand Down
33 changes: 30 additions & 3 deletions R/utils-get-boilerplate-fit-wflw.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,42 @@
#'
#' @author Steven P. Sanderson II, MPH
#'
#' @details
#' @details Extract the fitted workflow from a `ts_auto_` function. This will
#' only work on those functions that are designated as _Boilerplate_.
#'
#' @description
#' @description Extract the fitted workflow from a `ts_auto_` function.
#'
#' @param
#' @param .input This is the output list object of a `ts_auto_` function.
#'
#' @examples
#' \dontrun{
#' library(dplyr)
#'
#' data <- AirPassengers %>%
#' ts_to_tbl() %>%
#' select(-index)
#'
#' splits <- time_series_split(
#' data
#' , date_col
#' , assess = 12
#' , skip = 3
#' , cumulative = TRUE
#' )
#'
#' ts_lm <- ts_auto_lm(
#' .data = data,
#' .date_col = date_col,
#' .value_col = value,
#' .rsamp_obj = splits,
#' .formula = value ~ .,
#' )
#'
#' ts_extract_auto_fitted_workflow(ts_lm)
#' }
#'
#' @return
#' A fitted `workflow` object.
#'
#' @export
#'
Expand Down
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@ reference:
- matches("ts_wfs")
- title: Time Series Boiler Plate Functions
desc: healthyR.ts automatic time series functions to create in a single call a Recipe, Model Specification, Workflow, Model Fit, Tuned Model and Calibration object.
- subtitle: Auto Workflows
- contents:
- has_concept("Boiler_Plate")
- subtitle: Extractors
- contents:
- has_concept("Boilerplate Utility")
- title: Time Series Vector Functions
desc: healthyR.ts vectorized Functions
- contents:
Expand Down
53 changes: 53 additions & 0 deletions man/ts_extract_auto_fitted_workflow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ts_get_date_columns.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ts_is_date_class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 417434b

Please sign in to comment.