Last updated: 2022-04-17

Checks: 7 0

Knit directory: false.alarm/docs/

This reproducible R Markdown analysis was created with workflowr (version 1.7.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20201020) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 0c6023c. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .RData
    Ignored:    .Renviron
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    .devcontainer/exts/
    Ignored:    .github/ISSUE_TEMPLATE/
    Ignored:    .httr-oauth
    Ignored:    R/RcppExports.R
    Ignored:    _classifier/.gittargets
    Ignored:    _classifier/meta/process
    Ignored:    _classifier/meta/progress
    Ignored:    _classifier/objects/
    Ignored:    _classifier/scratch/
    Ignored:    _classifier/user/
    Ignored:    _regime_change/objects/
    Ignored:    _regime_change/scratch/
    Ignored:    _regime_change/user/
    Ignored:    _targets/meta/process
    Ignored:    _targets/meta/progress
    Ignored:    _targets/objects/
    Ignored:    _targets/scratch/
    Ignored:    _targets/user/
    Ignored:    dev/
    Ignored:    inst/extdata/
    Ignored:    papers/aime2021/aime2021.md
    Ignored:    presentations/MEDCIDS21/MEDCIDS21-10min_files/
    Ignored:    presentations/MEDCIDS21/MEDCIDS21_files/
    Ignored:    presentations/Report/Midterm-Report_cache/
    Ignored:    presentations/Report/Midterm-Report_files/
    Ignored:    protocol/SecondReport_cache/
    Ignored:    protocol/SecondReport_files/
    Ignored:    protocol/_files/
    Ignored:    renv/library/
    Ignored:    renv/python/
    Ignored:    renv/staging/
    Ignored:    src/RcppExports.cpp
    Ignored:    src/RcppExports.o
    Ignored:    src/contrast.o
    Ignored:    src/false.alarm.so
    Ignored:    src/fft.o
    Ignored:    src/mass.o
    Ignored:    src/math.o
    Ignored:    src/mpx.o
    Ignored:    src/scrimp.o
    Ignored:    src/stamp.o
    Ignored:    src/stomp.o
    Ignored:    src/windowfunc.o
    Ignored:    thesis/Rplots.pdf
    Ignored:    thesis/_bookdown_files/
    Ignored:    tmp/

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/blog-202108.Rmd) and HTML (docs/blog-202108.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 0c6023c Francisco Bischoff 2022-04-17 refactor blog

The first workflow presented in July has changed. Its purpose was to define a “big picture” of the process.

The main changes introduced were:

The Data

Initially, the data had been carried along the workflow, being copied at each new step. That obviously is not the way to handle it. Thus, the raw data is stored only on the “dataset” object and reused where needed.

Now, any modification to the raw data will create a new object, for example, “ds_filtered,” where the SQI filter is applied to the data.

Streaming paradigm

The goal of this work is to operate with streaming data. Thus, the Matrix Profile computation algorithm has been rewritten to handle receiving data in chunks. The algorithm can simulate one observation at a time or a batch of observations (for efficiency). The result will always be as if one observation had been received individually by the model.

To avoid unnecessary recomputations for this analysis phase, the companion statistics needed by the model are pre-computed and fed alongside the data the algorithm needs to process. The pre-computation also allows experimenting with parameters during this process.

References


─ Session info ───────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.1.3 (2022-03-10)
 os       Ubuntu 20.04.4 LTS
 system   x86_64, linux-gnu
 ui       X11
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       Europe/Lisbon
 date     2022-04-17
 pandoc   2.17.0.1 @ /usr/bin/ (via rmarkdown)

─ Packages ───────────────────────────────────────────────────────────────────
 package        * version     date (UTC) lib source
 askpass          1.1         2019-01-13 [1] CRAN (R 4.1.2)
 backports        1.4.1       2021-12-13 [1] CRAN (R 4.1.2)
 base64url        1.4         2018-05-14 [1] CRAN (R 4.1.2)
 bookdown         0.26.1      2022-04-16 [1] Github (rstudio/bookdown@6324d14)
 brio             1.1.3       2021-11-30 [1] CRAN (R 4.1.2)
 bslib            0.3.1       2021-10-06 [1] CRAN (R 4.1.2)
 cachem           1.0.6       2021-08-19 [1] CRAN (R 4.1.2)
 callr            3.7.0       2021-04-20 [1] CRAN (R 4.1.2)
 cli              3.2.0       2022-02-14 [1] CRAN (R 4.1.2)
 codetools        0.2-18      2020-11-04 [1] CRAN (R 4.1.2)
 colorspace       2.0-3       2022-02-21 [1] CRAN (R 4.1.2)
 conflicted       1.1.0       2021-11-26 [1] CRAN (R 4.1.2)
 crayon           1.5.1       2022-03-26 [1] CRAN (R 4.1.3)
 credentials      1.3.2       2021-11-29 [1] CRAN (R 4.1.2)
 data.table       1.14.2      2021-09-27 [1] CRAN (R 4.1.2)
 debugme          1.1.0       2017-10-22 [1] CRAN (R 4.1.2)
 desc             1.4.1       2022-03-06 [1] CRAN (R 4.1.2)
 devtools         2.4.3       2021-11-30 [1] CRAN (R 4.1.2)
 digest           0.6.29      2021-12-01 [1] CRAN (R 4.1.2)
 dplyr          * 1.0.8       2022-02-08 [1] CRAN (R 4.1.2)
 ellipsis         0.3.2       2021-04-29 [1] CRAN (R 4.1.2)
 evaluate         0.15        2022-02-18 [1] CRAN (R 4.1.2)
 fansi            1.0.3       2022-03-24 [1] CRAN (R 4.1.3)
 fastmap          1.1.0       2021-01-25 [1] CRAN (R 4.1.2)
 fs               1.5.2       2021-12-08 [1] CRAN (R 4.1.2)
 generics         0.1.2       2022-01-31 [1] CRAN (R 4.1.2)
 gert             1.6.0       2022-03-29 [1] CRAN (R 4.1.3)
 getPass          0.2-2       2017-07-21 [1] CRAN (R 4.1.2)
 ggplot2        * 3.3.5       2021-06-25 [1] CRAN (R 4.1.2)
 git2r            0.30.1.9000 2022-03-20 [1] Github (ropensci/git2r@80ba185)
 gittargets     * 0.0.3.9000  2022-02-27 [1] Github (wlandau/gittargets@13a9cd8)
 glue           * 1.6.2       2022-02-24 [1] CRAN (R 4.1.2)
 gtable           0.3.0       2019-03-25 [1] CRAN (R 4.1.2)
 here           * 1.0.1       2020-12-13 [1] CRAN (R 4.1.2)
 htmltools        0.5.2       2021-08-25 [1] CRAN (R 4.1.2)
 htmlwidgets      1.5.4       2021-09-08 [1] CRAN (R 4.1.2)
 httpuv           1.6.5       2022-01-05 [1] CRAN (R 4.1.2)
 httr             1.4.2       2020-07-20 [1] CRAN (R 4.1.2)
 igraph           1.3.0       2022-04-01 [1] CRAN (R 4.1.3)
 jquerylib        0.1.4       2021-04-26 [1] CRAN (R 4.1.2)
 jsonlite         1.8.0       2022-02-22 [1] CRAN (R 4.1.2)
 kableExtra     * 1.3.4       2021-02-20 [1] CRAN (R 4.1.2)
 knitr            1.38        2022-03-25 [1] CRAN (R 4.1.3)
 languageserver   0.3.12      2021-10-19 [1] CRAN (R 4.1.3)
 later            1.3.0       2021-08-18 [1] CRAN (R 4.1.2)
 lazyeval         0.2.2       2019-03-15 [1] CRAN (R 4.1.2)
 lifecycle        1.0.1       2021-09-24 [1] CRAN (R 4.1.2)
 magrittr         2.0.3       2022-03-30 [1] CRAN (R 4.1.3)
 memoise          2.0.1       2021-11-26 [1] CRAN (R 4.1.2)
 munsell          0.5.0       2018-06-12 [1] CRAN (R 4.1.2)
 openssl          2.0.0       2022-03-02 [1] CRAN (R 4.1.2)
 pillar           1.7.0       2022-02-01 [1] CRAN (R 4.1.2)
 pkgbuild         1.3.1       2021-12-20 [1] CRAN (R 4.1.2)
 pkgconfig        2.0.3       2019-09-22 [1] CRAN (R 4.1.2)
 pkgload          1.2.4       2021-11-30 [1] CRAN (R 4.1.2)
 plotly         * 4.10.0      2021-10-09 [1] CRAN (R 4.1.2)
 prettyunits      1.1.1       2020-01-24 [1] CRAN (R 4.1.2)
 processx         3.5.3       2022-03-25 [1] CRAN (R 4.1.3)
 promises         1.2.0.1     2021-02-11 [1] CRAN (R 4.1.2)
 ps               1.6.0       2021-02-28 [1] CRAN (R 4.1.2)
 purrr            0.3.4       2020-04-17 [1] CRAN (R 4.1.2)
 R6               2.5.1       2021-08-19 [1] CRAN (R 4.1.2)
 Rcpp             1.0.8.3     2022-03-17 [1] CRAN (R 4.1.2)
 remotes          2.4.2       2021-11-30 [1] CRAN (R 4.1.2)
 renv             0.15.4      2022-03-03 [1] CRAN (R 4.1.2)
 rlang            1.0.2.9000  2022-03-27 [1] Github (r-lib/rlang@21ccd82)
 rmarkdown        2.13.7      2022-04-16 [1] Github (rstudio/rmarkdown@3440bbf)
 rprojroot        2.0.3       2022-04-02 [1] CRAN (R 4.1.3)
 rstudioapi       0.13        2020-11-12 [1] CRAN (R 4.1.2)
 rvest            1.0.2       2021-10-16 [1] CRAN (R 4.1.2)
 sass             0.4.1       2022-03-23 [1] CRAN (R 4.1.3)
 scales           1.2.0       2022-04-13 [1] CRAN (R 4.1.3)
 sessioninfo      1.2.2       2021-12-06 [1] CRAN (R 4.1.2)
 stringi          1.7.6       2021-11-29 [1] CRAN (R 4.1.2)
 stringr          1.4.0       2019-02-10 [1] CRAN (R 4.1.2)
 svglite          2.1.0.9000  2022-03-03 [1] Github (r-lib/svglite@d673908)
 sys              3.4         2020-07-23 [1] CRAN (R 4.1.2)
 systemfonts      1.0.4       2022-02-11 [1] CRAN (R 4.1.2)
 tarchetypes    * 0.5.0       2022-03-16 [1] CRAN (R 4.1.2)
 targets        * 0.11.0      2022-03-19 [1] CRAN (R 4.1.2)
 testthat         3.1.3.9000  2022-04-02 [1] Github (r-lib/testthat@bb25375)
 tibble         * 3.1.6       2021-11-07 [1] CRAN (R 4.1.2)
 tidyr            1.2.0       2022-02-01 [1] CRAN (R 4.1.2)
 tidyselect       1.1.2       2022-02-21 [1] CRAN (R 4.1.2)
 usethis          2.1.5       2021-12-09 [1] CRAN (R 4.1.2)
 utf8             1.2.2       2021-07-24 [1] CRAN (R 4.1.2)
 uuid             1.0-4       2022-03-16 [1] CRAN (R 4.1.2)
 vctrs            0.4.1       2022-04-13 [1] CRAN (R 4.1.3)
 viridisLite      0.4.0       2021-04-13 [1] CRAN (R 4.1.2)
 webshot          0.5.3       2022-04-14 [1] CRAN (R 4.1.3)
 whisker          0.4         2019-08-28 [1] CRAN (R 4.1.2)
 withr            2.5.0       2022-03-03 [1] CRAN (R 4.1.2)
 workflowr      * 1.7.0       2021-12-21 [1] CRAN (R 4.1.2)
 xfun             0.30        2022-03-02 [1] CRAN (R 4.1.2)
 xml2             1.3.3       2021-11-30 [1] CRAN (R 4.1.2)
 yaml             2.3.5       2022-02-21 [1] CRAN (R 4.1.2)

 [1] /workspace/.cache/R/renv/library/false.alarm-d6f1a0d1/R-4.1/x86_64-pc-linux-gnu
 [2] /usr/lib/R/library

──────────────────────────────────────────────────────────────────────────────