Update to incorporate new features in drake#11
Merged
edgararuiz-zz merged 3 commits intosol-eng:masterfrom Aug 8, 2019
Merged
Conversation
Contributor
Author
|
As of ropensci/drake#977, we no longer need to worry about the performance issue I mentioned in richfitz/storr#77 (comment). With Related: library(drake)
n <- 1e8 # Each target is 1.6 GB in memory.
plan <- drake_plan(
data_fst = target(
data.frame(x = runif(n), y = runif(n)),
format = "fst"
),
data_old = data.frame(x = runif(n), y = runif(n))
)
make(plan)
#> target data_fst
#> target data_old
build_times(type = "build")
#> # A tibble: 2 x 4
#> target elapsed user system
#> <chr> <Duration> <Duration> <Duration>
#> 1 data_fst 13.93s 37.562s 7.954s
#> 2 data_old 184s (~3.07 minutes) 177s (~2.95 minutes) 4.157sCreated on 2019-08-05 by the reprex package (v0.3.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Development
drakenow tracks the history and provenance of targets over time (CRAN ETA mid-July) and the additions in this PR describe how it works.drakehistory is similar to MLflow tracking except:drakewhich parameters to track.drake_history()just analyzes commands automatically and detects named length-one atomic arguments to function calls in the plan.drakedoes not automatically create downstream summaries such as performance metrics. Users still need to create special targets for those.