Giter Site home page Giter Site logo

Comments (4)

wlandau avatar wlandau commented on June 4, 2024 1

For (2), I am thinking of something like the following. stantargets and jagstargets already use this idea, e.g. for tar_stan_mcmc_rep_summary().

Screen Shot 2021-12-06 at 12 07 20 PM

For (3), there are two stages of row-mapping.

Screen Shot 2021-12-06 at 12 07 27 PM

from tarchetypes.

wlandau avatar wlandau commented on June 4, 2024

There are actually 3 different kinds of target factory that would help with future targetopia packages:

  1. Batched dynamic branching over rows of a data frame, where each row of the data frame is a set of arguments of the command.
  2. Unbatched static branching over the rows of a data frame, followed by dynamic branching to run independent replicates for each row of that data frame. Sort of like tar_rep() inside tar_map().
  3. Unbatched static branching over the rows of a data frame, where each static branch produces a new data frame. Then another wave of downstream targets dynamically maps (in batches) over the rows of each new data frame, taking row groups as batches and columns as arguments.

from tarchetypes.

wlandau avatar wlandau commented on June 4, 2024

On second thought, (1) is actually covered by tar_group_count() and tar_group_size().

from tarchetypes.

wlandau avatar wlandau commented on June 4, 2024

I am calling (2) tar_map_rep(). For (3), I will implement tar_map2_count() and tar_map2_size(), each with a different method of partitioning downstream rows into batches.

from tarchetypes.

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.