Skip to content

Commit

Permalink
prep for supercession by timetk
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Oct 31, 2023
1 parent afd9be0 commit 64e78ee
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,22 @@ devtools::load_all()
library(tidyverse)
```

# Anomalize is being Superceded by Timetk:

The `anomalize` package functionality has been superceded by `timetk`. We suggest you begin to use the `timetk::anomalize()` to benefit from enhanced functionality to get improvements going forward. [Learn more about Anomaly Detection with `timetk` here.](https://business-science.github.io/timetk/articles/TK08_Automatic_Anomaly_Detection.html)

The original `anomalize` package functionality will be maintained for previous code bases that use the legacy functionality.

To prevent the new `timetk` functionality from conflicting with old `anomalize` code, use these lines:

``` r
library(anomalize)

anomalize <- anomalize::anomalize
plot_anomalies <- anomalize::plot_anomalies
```


<!-- # anomalize -->
# anomalize <img src="man/figures/anomalize-logo.png" width="147" height="170" align="right" />

Expand Down Expand Up @@ -63,6 +79,13 @@ Load the `tidyverse` and `anomalize` packages.
```{r, eval = F}
library(tidyverse)
library(anomalize)
# NOTE: timetk now has anomaly detection built in, which
# will get the new functionality going forward.
# Use this script to prevent overwriting legacy anomalize:
anomalize <- anomalize::anomalize
plot_anomalies <- anomalize::plot_anomalies
```


Expand Down
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->

# Anomalize is being Superceded by Timetk:

The `anomalize` package functionality has been superceded by `timetk`.
We suggest you begin to use the `timetk::anomalize()` to benefit from
enhanced functionality to get improvements going forward. [Learn more
about Anomaly Detection with `timetk`
here.](https://business-science.github.io/timetk/articles/TK08_Automatic_Anomaly_Detection.html)

The original `anomalize` package functionality will be maintained for
previous code bases that use the legacy functionality.

To prevent the new `timetk` functionality from conflicting with old
`anomalize` code, use these lines:

``` r
library(anomalize)

anomalize <- anomalize::anomalize
plot_anomalies <- anomalize::plot_anomalies
```

<!-- # anomalize -->

# anomalize <img src="man/figures/anomalize-logo.png" width="147" height="170" align="right" />
Expand Down Expand Up @@ -55,6 +77,13 @@ Load the `tidyverse` and `anomalize` packages.
``` r
library(tidyverse)
library(anomalize)

# NOTE: timetk now has anomaly detection built in, which
# will get the new functionality going forward.
# Use this script to prevent overwriting legacy anomalize:

anomalize <- anomalize::anomalize
plot_anomalies <- anomalize::plot_anomalies
```

Next, let’s get some data. `anomalize` ships with a data set called
Expand Down
6 changes: 6 additions & 0 deletions vignettes/anomalize_methods.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ Load two libraries to perform the comparison.
```{r, eval = F}
library(tidyverse)
library(anomalize)
# NOTE: timetk now has anomaly detection built in, which
# will get the new functionality going forward.
anomalize <- anomalize::anomalize
plot_anomalies <- anomalize::plot_anomalies
```


Expand Down
6 changes: 6 additions & 0 deletions vignettes/anomalize_quick_start_guide.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ Load libraries.
library(tidyverse)
library(tibbletime)
library(anomalize)
# NOTE: timetk now has anomaly detection built in, which
# will get the new functionality going forward.
anomalize <- anomalize::anomalize
plot_anomalies <- anomalize::plot_anomalies
```

Get some data. We'll use the `tidyverse_cran_downloads` data set that comes with `anomalize`. A few points:
Expand Down
7 changes: 7 additions & 0 deletions vignettes/forecasting_with_cleaned_anomalies.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ library(tidyverse)
library(tidyquant)
library(anomalize)
library(timetk)
# NOTE: timetk now has anomaly detection built in, which
# will get the new functionality going forward.
# Use this script to prevent overwriting legacy anomalize:
anomalize <- anomalize::anomalize
plot_anomalies <- anomalize::plot_anomalies
```

Here is a short example with the `tidyverse_cran_downloads` dataset that comes with `anomalize`. __We'll see how we can reduce the forecast error by 32% simply by repairing anomalies.__
Expand Down

0 comments on commit 64e78ee

Please sign in to comment.