GithubHelp home page GithubHelp logo

Comments (5)

DavisVaughan avatar DavisVaughan commented on August 21, 2024 1

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.

DavisVaughan avatar DavisVaughan commented on August 21, 2024

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.

yonicd avatar yonicd commented on August 21, 2024

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.

DavisVaughan avatar DavisVaughan commented on August 21, 2024

What do you mean? What else would it do?

from furrr.

yonicd avatar yonicd commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.