graphkit
graphkit copied to clipboard
A lightweight Python module for creating and running ordered graphs of computations.
## Reason: The purpose is not to require a "perfect" input model for the dag to run, but the algorithm to find the minimum viable subgraph that can compute. Useful...
Inputs & outputs in ``needs`` & ``provides`` kwargs designated as ``token`` work as usual while solving the DAG but they are never assigned any values to/from the operation's functions: ```python...
+ MERGED with #28 to parametrize tests. + FIX(plot): bring plot writing into files up-to-date from PY2 (were not opening in binary mode). + FIX(plot): do not open file if...
Minor fix, encountered when building on top of composed networks & merges. --- I confirm that this contribution is made under the terms of the license found in the root...
`numpy` was used for TCs just for its `assert_raises` method. + Added `test` extras, like when `pip install -e .[test]` + Use pytest & coverage on travis. + As usual,...
It seems [compose class](https://github.com/yahoo/graphkit/blob/e70718bbc7b394280c39c1fda381bcebd4c3de8d/graphkit/functional.py#L145) could be converted to a function and use the initialization arguments as named arguments for the function instead. Also the class name does not follow the...
Assuming my understanding is correct: The *delete-instructions* reduce the memory footprint of *cached* results. They are pre-computed on network-construction (in `compile()`). They are inserted between operation nodes in the (`Network.steps`)...
In the following diagram, all data are given, and `asked` is different, depending on whether we expicitly ask it in the outputs: - when `asked` output asked, it checks `overriden`...
The following graph with `given-1` & `given-2` inputs fails to compute with `KeyError: 'a'` when the `asked` output is asked, but it does so when not asked! ## Code to...
Addresses 1 issue from #22 (**but not yet any TC to prove it!**), see also reproducibility problem in #14. NOTE: dicts are not deterministic in