Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ZnTrack #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add ZnTrack #173

wants to merge 1 commit into from

Conversation

PythonFZ
Copy link

The ZnTrack package provides workflow and Experiment management based on DVC.
It can be used to

  • build graphs from within Python
  • write packages that can be used as nodes on other graphs built around DVC.

API

A ZnTrack Node is similar to the dataclass API, defining inputs, outputs and the node methods in an object oriented approach:

class InputToOutput(Node):
    """Save the inputs 'zn.params' to the outputs attribute 'zn.outs'"""

    inputs = zn.params()
    outputs = zn.outs()

    def run(self):
        self.outputs = self.inputs

Nodes can be connected via zn.deps(InputToOutput) or the respective files that are generated.
More examples are available at https://github.com/zincware/znlib which collects ZnTrack Nodes and is constantly growing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant