Skip to content

Enhancement Idea seeds #2

Description

@thorwhalen

DAG Factories

Make func_nodes (i.e. dag) factory to allow the user to use (or make) ways to efficiently
express how names and therefore connections should be made.

Connection using type annotations

A function providingFeaturizer as an output can connect to (i.e. feed) functions that take Featurizers as inputs

structure through nested lists

[..., [a, b, c],...] meaning we want a -> b -> c

from python code

Make a graphviz.Digraph object based on code (string or function's body)

ch_names

Method to change the names (roots, inner, leafs, funcs)

order

Method to make order compliant with some given order-determining list.
Ordering roots and leafs should make inputs and outputs as wished, but doesn't
carry on to sub-DAGs. Do we need more control on topological sort?

request-triggered data access

obj.prop asks obj._dag for the sub-dag to compute
said prop and if a maintained obj._scope (the cache) contains sufficient data,
it computes it (and caches it) with minimum computional path.

Basically the pattern I often use lazyprop for.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions