Giter Site home page Giter Site logo

dask-checkpoint's People

Contributors

maurosilber avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dask-checkpoint's Issues

Improve optimizer to traverse the dask graph from the requested key

Currently, the optimizer step traverses the full dask graph in no particular order:

https://github.com/maurosilber/pipeline/blob/0cac8b8954b4def43e593040dced79807ac37f3a/pipeline/storage.py#L50-L58

It would be better to traverse it starting from the requested key(s), following through with their dependencies. A task does not need to be checked if all its dependents are already stored and will be loaded.

For instance, consider the following graph, a -> b -> c, where b is already stored.

dsk = {
    "a": (task_a,),
    "b": (task_b, "a"),
    "c": (task_c, "b"),
}

If we request c, which is not stored, then we would need to check b, which is stored and hence loaded. Then, we don't need to check a, which is simply removed from the graph.

optimized_dsk = {
    # "a": (task_a,),
    "b": (load, task_b),
    "c": (task_c, "b"),
}

We could adapt the dask.cull implementation.

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.