Closed edgBR closed 2 years ago
Hi,
Is this package maintained?
BR /Edgar
@edgBR ,
Please be patient. Yes - this project is actively being maintained. My last commit was 27-days ago, which is relatively recent.
Regarding your tsibble
question, try converting to a tibble
first - then use anomalize
. I don't know what is required to make both work together. It's something that you can easily fix though by first converting to a tibble
.
-Matt
Dear @mdancho84 well I thought that as you mention tsibble in your tibbletime repo this was the way to go.
Anyway even if I have the data as tibble the library automatically detects snsr_dt as index when in tries to auto-converted to tbl_time:
> GlobalDemand <- as_tibble(x = GlobalDemand, index = snsr_ts)
> GlobalDemandCleaned <- GlobalDemand %>%
+ time_decompose(target = global_demand, method = "twitter", ) %>%
+ anomalize(target = remainder, method = "gesd", alpha = 0.05, max_anoms = 0.1) %>%
+ clean_anomalies() %>%
+ rename(snsr_ts = snsr_dt)
Converting from tbl_df to tbl_time.
Auto-index message: index = snsr_dt
I just would like to avoid to use tibbletime if this is going to be deprecated.
BR /E
tibbletime
has not been deprecated, just retired. This has a different meaning in lifecycle. We are still maintaining and supporting, just not building new features. As such, anomalize
, which leverages tibbletime
, would require a re-write to get it to work with tsibble
and tibble
and tibbletime
. The solution is timetk
discussed below.
The timetk
package may be of interest since it uses just the tibble
(not tsibble
), which prevents issues like what you are experiencing. timetk
has plot_anomaly_diagnostics()
and tk_anomaly_diagnostics()
.
Dear colleagues,
I had a code that it was working as follows:
This code was using tibbletime and it was detecting my sub-hourly frequency (30mins) properly. Based on the status of tibble time I decided to migrate the time to tsibble and now I am doing as follows:
However it seems that anomalize ignores the index of tsibble and sets snsr_dt as index:
Last error and trace as follows: