Comments (5)
I think I'm going to keep furrr as is for now. I would use future()
directly if you need more control over the lazy resolution of values
from furrr.
So you want to just use furrr
as a way to send off jobs to the grid, get the future
objects back immediately, and then manually call values()
on that yourself when you are ready to try and collect from the grid? I could see that being useful.
I think it would just require an extra wait
argument in future_options()
and then a change to this line that does or does not try and resolve based on the value of wait
. https://github.com/DavisVaughan/furrr/blob/master/R/future_map_template.R#L188
from furrr.
I think it can be controlled in the tweak you define internally, can that be made into a functional expr for user to pass in?
from furrr.
What do you mean? What else would it do?
from furrr.
i use this (from henrik's suggestion), i use sge in this case
my_sge <- future::tweak(future.batchtools::batchtools_sge, template = PATH_TO_TMPL)
future::plan(list(multiprocess, my_sge))
then i run
Y1 %<-% future_lapply(rep(300, 20),
FUN = function(nr){
solve( matrix(rnorm(nr^2), nrow=nr, ncol=nr))
},
future.scheduling = 5)
and the grid is governed by another thread and frees the console to continue working
i think you can wrap that around a functional and have furrr
eval internally to what the user gives you... having a default in place in case they don't.
from furrr.
Related Issues (20)
- Error with custom methods in UNIX/HPC environment HOT 4
- Error on modifying by reference with `data.table::set()` in the context of `future.apply::future_apply()` or `furrr::future_map()` HOT 1
- How to locate errors and debug when using furrr? HOT 2
- `furrr` much slower than `purrr` on nested data HOT 2
- parse() error with future_map2 but not map2 HOT 9
- future_walk work in parallel in script function, but not in R package function HOT 13
- Would future::plan() work if embedded in a function? HOT 2
- future_pmap_dbl resulted exactly the same value for each row of a tibble HOT 2
- Operator '<<-' inside a function invoked by future_map HOT 1
- Confused about furrr_options globals HOT 3
- future_map raise an error when .f contains a call to a python function imported via the reticulate package HOT 1
- Release furrr 0.3.1
- furrr::future_map could not find function HOT 3
- future_map does not work with output from modelr::permute HOT 2
- Unbalanced Load distribution on first run
- Resume after interruption HOT 1
- Error indices from purrr() are misleading in furrr()
- Getting the same random result across `purrr::map()` and `furrr::future_map()` HOT 3
- `furrr` much slower than `purrr` (on Windows) HOT 2
- Export a wrapper around purrr `map()` to workers rather than `map()` itself
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from furrr.