-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stylistic changes #439
stylistic changes #439
Conversation
sadly, this option doesn't seem to work on Windows... library(parameters)
model <- lm(mpg ~ wt + cyl, data = mtcars)
microbenchmark::microbenchmark(
model_parameters(model, bootstrap = TRUE, iterations = 1000, parallel = "snow"),
times = 5
)
#> Unit: seconds
#> expr
#> model_parameters(model, bootstrap = TRUE, iterations = 1000, parallel = "snow")
#> min lq mean median uq max neval
#> 1.072621 1.076588 1.141162 1.108037 1.109053 1.339513 5
microbenchmark::microbenchmark(
model_parameters(model, bootstrap = TRUE, iterations = 1000, parallel = "no"),
times = 5
)
#> Unit: seconds
#> expr
#> model_parameters(model, bootstrap = TRUE, iterations = 1000, parallel = "no")
#> min lq mean median uq max neval
#> 1.050956 1.060096 1.118408 1.064866 1.070488 1.345632 5
microbenchmark::microbenchmark(
model_parameters(model, bootstrap = TRUE, iterations = 1000, parallel = "multicore"),
times = 5
)
#> Unit: seconds
#> expr
#> model_parameters(model, bootstrap = TRUE, iterations = 1000, parallel = "multicore")
#> min lq mean median uq max neval
#> 1.083162 1.138866 1.161232 1.176707 1.188325 1.219101 5 Created on 2021-03-09 by the reprex package (v1.0.0) |
I will merge for now, and we can build on it further later. |
But checks don't pass. |
Uh-oh, let me check what happened. |
Looks like an invalid argument was used in the tests, which didn't do any harm, because we didn't pass down the dots to |
@DominiqueMakowski This PR breaks a lot of other stuff, in particular all parameters that are passed down to @IndrajeetPatil would you revise this PR accordingly to not break current functionality? |
wouldn't something like |
I prefer to then just go back to the earlier implementation I had in mind: |
As discussed in #436, I've decided to revert all |
No description provided.