pennmem / cml_pipelines Goto Github PK
View Code? Open in Web Editor NEWUtilities for constructing pipelines with dask
Utilities for constructing pipelines with dask
A lot of times when building pipelines, we might want to do something like this:
results = [func(x) for x in iterable]
return results
To make this work easier with delayed tasks, the Pipeline
class should gain a sink
method that collects the results like this for us so that we can use that to return a single dask.Delayed
instance in the build
method like so:
def build(self):
results = [self.delayed_func(x) for x in self.values]
return self.sink(results)
We should do one of two things upon successful completion of a pipeline:
The joblib caching mechanism leaves much to be desired. We should just get rid of it and use the dask.distributed
decorator directly.
Futures are great, but in most cases when we're building pipelines, we need to wait on the results so blocking should be the default.
A better way to implement the FilePaths class is to subclass dict and override setitem similar to tornado's ObjectDict implementation: https://github.com/tornadoweb/tornado/blob/81eb9f75238c1e3442f1687d0ca1030c5ba3f177/tornado/util.py#L97-L109
Right now if you want to clear the cache manually, you have to do from cml_pipelines.wrapper import memory
and then memory.clear()
which is kind of awkward. We should come up with a friendlier way to do this (and set cache directory, etc.).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.