All Projects → hyroai → computation-graph

hyroai / computation-graph

Licence: MIT license
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to computation-graph

Nnvm
No description or website provided.
Stars: ✭ 1,639 (+7350%)
Mutual labels:  computation-graph
Gorgonia
Gorgonia is a library that helps facilitate machine learning in Go.
Stars: ✭ 4,295 (+19422.73%)
Mutual labels:  computation-graph
tensorsem
Structural Equation Modeling using Torch
Stars: ✭ 36 (+63.64%)
Mutual labels:  computation-graph

Build Status

A function composition framework that supports:

  1. State - functions which retain state for their next turn of action.
  2. Prioritized paths - lazily attempt overloaded composition paths according to priorities.
  3. Deep dependency injection - compose a function to a variadic function at the end of an arbitrarily long pipeline.
  4. Non cancerous asyncio support.

pip install computation-graph

To deploy: python setup.py sdist bdist_wheel; twine upload dist/*; rm -rf dist/;

Type checking

The runner will type check all outputs for nodes with return type annotations. In case of a wrong typing, it will log the node at fault.

Debugging

Computation trace

Available computation trace visualizers:

  1. graphviz.computation_trace
  2. mermaid.computation_trace
  3. ascii.computation_trace

To use, replace to_callable with run.to_callable_with_side_effect with your selected style as the first argument.

Graphviz debugger

This debugger will save a file on each graph execution to current working directory.

You can use this file in a graph viewer like gephi. Nodes colored red are part of the 'winning' computation path. Each of these nodes has the attributes 'result' and 'state'. 'result' is the output of the node, and 'state' is the new state of the node.

In gephi you can filter for the nodes participating in calculation of final result by filtering on result != null.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].